chore(nvim): Split plugins to their own file and lazyload commentary

This commit is contained in:
Ahmad Ansori Palembani 2024-04-18 09:48:03 +07:00
parent e4ad35f4a6
commit 6636abb02f
Signed by: null2264
GPG key ID: BA64F8B60AF3EFB6
3 changed files with 63 additions and 54 deletions

View 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
},
}