Rework Neovim configuration
This commit is contained in:
parent
7bd97e0f6e
commit
da96f0a640
11 changed files with 470 additions and 398 deletions
16
home-manager/cli/neovim/files/neotree.lua
Normal file
16
home-manager/cli/neovim/files/neotree.lua
Normal 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' }
|
||||
)
|
Loading…
Add table
Add a link
Reference in a new issue