feat(nvim) : neotree closes when last buffer or on file open
This commit is contained in:
parent
1187876278
commit
a49bb72411
1 changed files with 16 additions and 20 deletions
|
@ -1,16 +1,4 @@
|
||||||
return {
|
return {
|
||||||
-- add telescope-fzf-native
|
|
||||||
{
|
|
||||||
"telescope.nvim",
|
|
||||||
dependencies = {
|
|
||||||
"nvim-telescope/telescope-fzf-native.nvim",
|
|
||||||
build = "cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=Release && cmake --build build --config Release && cmake --install build --prefix build",
|
|
||||||
config = function()
|
|
||||||
require("telescope").load_extension("fzf")
|
|
||||||
end,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
|
|
||||||
-- theme Rosé Pine
|
-- theme Rosé Pine
|
||||||
{ 'rose-pine/neovim', name = 'rose-pine' },
|
{ 'rose-pine/neovim', name = 'rose-pine' },
|
||||||
|
|
||||||
|
@ -20,13 +8,21 @@ return {
|
||||||
opts = {
|
opts = {
|
||||||
colorscheme = "rose-pine",
|
colorscheme = "rose-pine",
|
||||||
},
|
},
|
||||||
}
|
},
|
||||||
|
|
||||||
-- NeoScroll plugin
|
-- Neotree plugin
|
||||||
-- {
|
{
|
||||||
-- "karb94/neoscroll.nvim",
|
"nvim-neo-tree/neo-tree.nvim",
|
||||||
-- config = function ()
|
opts = {
|
||||||
-- require('neoscroll').setup {}
|
close_if_last_window = true,
|
||||||
-- end
|
event_handlers = {
|
||||||
-- }
|
{
|
||||||
|
event = "file_opened",
|
||||||
|
handler = function()
|
||||||
|
vim.cmd([[Neotree close]])
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
}
|
||||||
|
},
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue