neovim: Start Neotree in the config function

...so that our config is actually applied when we start
This commit is contained in:
Peter Cai 2022-08-08 15:25:03 -04:00
parent ebb90199fc
commit 3758670e5b
2 changed files with 9 additions and 9 deletions

View File

@ -65,6 +65,3 @@ function _G.set_focus_keymaps()
end
EOF
autocmd BufEnter * lua set_focus_keymaps()
" Startup commands
autocmd UIEnter * Neotree

View File

@ -41,12 +41,15 @@ return require('packer').startup(function(use)
"kyazdani42/nvim-web-devicons",
"MunifTanjim/nui.nvim",
},
config = function() require("neo-tree").setup({
window = {
position = "left",
width = 36,
},
}) end,
config = function()
require("neo-tree").setup({
window = {
position = "left",
width = 36,
},
})
require("neo-tree.sources.manager").show("filesystem")
end,
}
-- Tabs