diff --git a/lua/plugins/copilot.lua b/lua/plugins/copilot.lua index 804fd3c5..bace6372 100644 --- a/lua/plugins/copilot.lua +++ b/lua/plugins/copilot.lua @@ -1,17 +1,3 @@ -local COPILOT_ENABLED = true - -vim.keymap.set('n', '', 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 { 'zbirenbaum/copilot.lua', cmd = 'Copilot', @@ -23,7 +9,7 @@ return { -- disable copilot by default copilot.setup { suggestion = { - enabled = COPILOT_ENABLED, + enabled = true, auto_trigger = true, keymap = { accept = '', diff --git a/lua/plugins/markdown_preview.lua b/lua/plugins/markdown_preview.lua new file mode 100644 index 00000000..7c6352e7 --- /dev/null +++ b/lua/plugins/markdown_preview.lua @@ -0,0 +1,10 @@ +return { + { + 'iamcco/markdown-preview.nvim', + cmd = { 'MarkdownPreviewToggle', 'MarkdownPreview', 'MarkdownPreviewStop' }, + ft = { 'markdown' }, + build = function() + vim.fn['mkdp#util#install']() + end, + }, +} diff --git a/lua/plugins/mini_nvim.lua b/lua/plugins/mini_nvim.lua index 5e7f743d..6752252a 100644 --- a/lua/plugins/mini_nvim.lua +++ b/lua/plugins/mini_nvim.lua @@ -28,7 +28,7 @@ return { -- Collection of various small independent plugins/modules -- cursor location to LINE:COLUMN ---@diagnostic disable-next-line: duplicate-set-field statusline.section_location = function() - return '%2l:%-2v' + return '%2l:%-2v/%L' end -- ... and there is more! diff --git a/lua/plugins/neo_tree.lua b/lua/plugins/neo_tree.lua index 1363dfb7..c85c200f 100644 --- a/lua/plugins/neo_tree.lua +++ b/lua/plugins/neo_tree.lua @@ -4,10 +4,11 @@ return { branch = 'v3.x', dependencies = { 'nvim-lua/plenary.nvim', - 'nvim-tree/nvim-web-devicons', + 'nvim-tree/nvim-web-devicons', -- not strictly required, but recommended '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 = { { 'nt', @@ -19,7 +20,19 @@ return { }, opts = { 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 = 'neo_tree_buffer_enter',