Rework Neovim configuration

This commit is contained in:
Yorick Barbanneau 2023-10-21 16:45:32 +02:00
parent 7bd97e0f6e
commit da96f0a640
11 changed files with 470 additions and 398 deletions

View file

@ -0,0 +1,16 @@
local neotree = require 'neo-tree'
neotree.setup({
event_handlers = {
{
event = "file_opened",
handler = function(file_path)
-- auto close
require("neo-tree.command").execute({action = "close"})
end
},
}
})
vim.api.nvim_set_keymap('n', '<leader>fm',
':Neotree toggle<CR>',
{ table.unpack(opts), desc = 'Toggle NeoTree' }
)