This commit is contained in:
jorgenwh 2024-06-17 22:39:03 +02:00
parent f0d9ed52c0
commit e037b3ab4a
4 changed files with 28 additions and 19 deletions

View File

@ -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 {
'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 = '<Tab>',

View File

@ -0,0 +1,10 @@
return {
{
'iamcco/markdown-preview.nvim',
cmd = { 'MarkdownPreviewToggle', 'MarkdownPreview', 'MarkdownPreviewStop' },
ft = { 'markdown' },
build = function()
vim.fn['mkdp#util#install']()
end,
},
}

View File

@ -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!

View File

@ -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 = {
{
'<leader>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',