add autocmd for neotree
This commit is contained in:
parent
355637aec4
commit
2694493570
1 changed files with 8 additions and 0 deletions
8
after/plugin/neo-tree.lua
Normal file
8
after/plugin/neo-tree.lua
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
-- Autocmd to open Neo-tree automatically on startup
|
||||
vim.api.nvim_create_autocmd("VimEnter", {
|
||||
callback = function()
|
||||
if vim.fn.isdirectory(vim.fn.getcwd()) == 1 then
|
||||
require('neo-tree.command').execute({ toggle = false, dir = vim.loop.cwd() })
|
||||
end
|
||||
end
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue