neovim: Start Neotree in the config function
...so that our config is actually applied when we start
This commit is contained in:
parent
ebb90199fc
commit
3758670e5b
|
@ -65,6 +65,3 @@ function _G.set_focus_keymaps()
|
||||||
end
|
end
|
||||||
EOF
|
EOF
|
||||||
autocmd BufEnter * lua set_focus_keymaps()
|
autocmd BufEnter * lua set_focus_keymaps()
|
||||||
|
|
||||||
" Startup commands
|
|
||||||
autocmd UIEnter * Neotree
|
|
||||||
|
|
|
@ -41,12 +41,15 @@ return require('packer').startup(function(use)
|
||||||
"kyazdani42/nvim-web-devicons",
|
"kyazdani42/nvim-web-devicons",
|
||||||
"MunifTanjim/nui.nvim",
|
"MunifTanjim/nui.nvim",
|
||||||
},
|
},
|
||||||
config = function() require("neo-tree").setup({
|
config = function()
|
||||||
window = {
|
require("neo-tree").setup({
|
||||||
position = "left",
|
window = {
|
||||||
width = 36,
|
position = "left",
|
||||||
},
|
width = 36,
|
||||||
}) end,
|
},
|
||||||
|
})
|
||||||
|
require("neo-tree.sources.manager").show("filesystem")
|
||||||
|
end,
|
||||||
}
|
}
|
||||||
|
|
||||||
-- Tabs
|
-- Tabs
|
||||||
|
|
Loading…
Reference in a new issue