nice
This commit is contained in:
parent
f0d9ed52c0
commit
e037b3ab4a
|
@ -1,17 +1,3 @@
|
||||||
local COPILOT_ENABLED = true
|
|
||||||
|
|
||||||
vim.keymap.set('n', '<F8>', function()
|
|
||||||
if COPILOT_ENABLED then
|
|
||||||
vim.cmd 'Copilot disable'
|
|
||||||
COPILOT_ENABLED = false
|
|
||||||
print 'Copilot disabled'
|
|
||||||
else
|
|
||||||
vim.cmd 'Copilot enable'
|
|
||||||
COPILOT_ENABLED = true
|
|
||||||
print 'Copilot enabled'
|
|
||||||
end
|
|
||||||
end, { noremap = true, silent = true })
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
'zbirenbaum/copilot.lua',
|
'zbirenbaum/copilot.lua',
|
||||||
cmd = 'Copilot',
|
cmd = 'Copilot',
|
||||||
|
@ -23,7 +9,7 @@ return {
|
||||||
-- disable copilot by default
|
-- disable copilot by default
|
||||||
copilot.setup {
|
copilot.setup {
|
||||||
suggestion = {
|
suggestion = {
|
||||||
enabled = COPILOT_ENABLED,
|
enabled = true,
|
||||||
auto_trigger = true,
|
auto_trigger = true,
|
||||||
keymap = {
|
keymap = {
|
||||||
accept = '<Tab>',
|
accept = '<Tab>',
|
||||||
|
|
|
@ -0,0 +1,10 @@
|
||||||
|
return {
|
||||||
|
{
|
||||||
|
'iamcco/markdown-preview.nvim',
|
||||||
|
cmd = { 'MarkdownPreviewToggle', 'MarkdownPreview', 'MarkdownPreviewStop' },
|
||||||
|
ft = { 'markdown' },
|
||||||
|
build = function()
|
||||||
|
vim.fn['mkdp#util#install']()
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
}
|
|
@ -28,7 +28,7 @@ return { -- Collection of various small independent plugins/modules
|
||||||
-- cursor location to LINE:COLUMN
|
-- cursor location to LINE:COLUMN
|
||||||
---@diagnostic disable-next-line: duplicate-set-field
|
---@diagnostic disable-next-line: duplicate-set-field
|
||||||
statusline.section_location = function()
|
statusline.section_location = function()
|
||||||
return '%2l:%-2v'
|
return '%2l:%-2v/%L'
|
||||||
end
|
end
|
||||||
|
|
||||||
-- ... and there is more!
|
-- ... and there is more!
|
||||||
|
|
|
@ -4,10 +4,11 @@ return {
|
||||||
branch = 'v3.x',
|
branch = 'v3.x',
|
||||||
dependencies = {
|
dependencies = {
|
||||||
'nvim-lua/plenary.nvim',
|
'nvim-lua/plenary.nvim',
|
||||||
'nvim-tree/nvim-web-devicons',
|
'nvim-tree/nvim-web-devicons', -- not strictly required, but recommended
|
||||||
'MunifTanjim/nui.nvim',
|
'MunifTanjim/nui.nvim',
|
||||||
-- "3rd/image.nvim", -- Optional image support in preview window: See `# Preview Mode` for more information
|
'3rd/image.nvim', -- Optional image support in preview window: See `# Preview Mode` for more information
|
||||||
},
|
},
|
||||||
|
|
||||||
keys = {
|
keys = {
|
||||||
{
|
{
|
||||||
'<leader>nt',
|
'<leader>nt',
|
||||||
|
@ -19,7 +20,19 @@ return {
|
||||||
},
|
},
|
||||||
opts = {
|
opts = {
|
||||||
close_if_last_window = true,
|
close_if_last_window = true,
|
||||||
use_libuv_file_watcher = true,
|
filesystem = {
|
||||||
|
use_libuv_file_watcher = true,
|
||||||
|
follow_current_file = {
|
||||||
|
enabled = true,
|
||||||
|
leave_dirs_open = true,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
buffers = {
|
||||||
|
follow_current_file = {
|
||||||
|
enabled = true,
|
||||||
|
leave_dirs_open = true,
|
||||||
|
},
|
||||||
|
},
|
||||||
event_handlers = {
|
event_handlers = {
|
||||||
{
|
{
|
||||||
event = 'neo_tree_buffer_enter',
|
event = 'neo_tree_buffer_enter',
|
||||||
|
|
Loading…
Reference in New Issue