Convert Neovim configuration to module
This commit is contained in:
parent
f65ec32010
commit
a0e5672290
13 changed files with 130 additions and 123 deletions
|
@ -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' }
|
||||
)
|
Loading…
Add table
Add a link
Reference in a new issue