feat: Personnal configuration

This commit is contained in:
Xavier Logerais
2025-04-01 16:04:41 +00:00
parent 870c63b394
commit 99209b6963
6 changed files with 152 additions and 17 deletions

29
lua/plugins/neo-tree.lua Normal file
View File

@ -0,0 +1,29 @@
return {
{
"nvim-neo-tree/neo-tree.nvim",
opts = {
window = {
width = 50,
mappings = {
["<space>"] = false, -- disable space until we figure out which-key disabling
[">"] = "next_source",
["<"] = "prev_source",
["<tab>"] = "next_source",
["<s-tab>"] = "prev_source",
},
},
event_handlers = {
{
event = "file_opened",
handler = function(file_path)
-- auto close
-- vimc.cmd("Neotree close")
-- OR
require("neo-tree.command").execute({ action = "close" })
end
},
},
close_if_last_window = true,
},
}
}