Convert Neovim configuration to module

This commit is contained in:
Yorick Barbanneau 2023-12-30 13:04:55 +01:00
parent f65ec32010
commit a0e5672290
13 changed files with 130 additions and 123 deletions

View file

@ -1,16 +0,0 @@
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' }
)