chore(nvim): Split plugins to their own file and lazyload commentary
This commit is contained in:
parent
e4ad35f4a6
commit
6636abb02f
3 changed files with 63 additions and 54 deletions
29
.config/nvim/lua/null/plugins/file-explorer.lua
Normal file
29
.config/nvim/lua/null/plugins/file-explorer.lua
Normal file
|
@ -0,0 +1,29 @@
|
|||
return {
|
||||
{
|
||||
"nvim-neo-tree/neo-tree.nvim", -- I'll be using oil.nvim, but for better visual I'll keep this
|
||||
keys = {
|
||||
{ "<C-n>", "<cmd>Neotree toggle<cr>", desc = "NeoTree" },
|
||||
},
|
||||
branch = "v3.x",
|
||||
dependencies = {
|
||||
"nvim-lua/plenary.nvim",
|
||||
"nvim-tree/nvim-web-devicons",
|
||||
"MunifTanjim/nui.nvim",
|
||||
},
|
||||
config = function ()
|
||||
require("neo-tree").setup({
|
||||
close_if_last_window = true,
|
||||
})
|
||||
end,
|
||||
},
|
||||
{
|
||||
"stevearc/oil.nvim",
|
||||
keys = {
|
||||
{ "-", "<cmd>Oil<cr>", desc = "Oil" },
|
||||
},
|
||||
dependencies = { "nvim-tree/nvim-web-devicons" },
|
||||
config = function ()
|
||||
require("oil").setup()
|
||||
end
|
||||
},
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue