mirror of
https://github.com/nvim-lua/kickstart.nvim.git
synced 2025-08-15 07:23:02 +02:00
Open neo-tree on directory open in netrw style
This commit is contained in:
parent
f577a7036f
commit
a5b6985f46
2 changed files with 20 additions and 28 deletions
|
@ -264,6 +264,26 @@ return {
|
|||
'MunifTanjim/nui.nvim',
|
||||
-- "3rd/image.nvim", -- Optional image support in preview window: See `# Preview Mode` for more information
|
||||
},
|
||||
config = function()
|
||||
require('neo-tree').setup {
|
||||
source_selector = {
|
||||
winbar = true,
|
||||
statusline = true,
|
||||
},
|
||||
}
|
||||
end,
|
||||
init = function()
|
||||
if vim.fn.argc(-1) == 1 then
|
||||
local stat = vim.loop.fs_stat(vim.fn.argv(0))
|
||||
if stat and stat.type == 'directory' then
|
||||
require('neo-tree').setup {
|
||||
filesystem = {
|
||||
hijack_netrw_behavior = 'open_current',
|
||||
},
|
||||
}
|
||||
end
|
||||
end
|
||||
end,
|
||||
},
|
||||
{
|
||||
'SmiteshP/nvim-navic',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue