Use lazy.nvim

This commit is contained in:
Saeed Afzal
2023-04-29 12:34:36 +01:00
parent 17ab6018fb
commit 86cc9b52ec
28 changed files with 308 additions and 493 deletions

33
lua/plugins/neotree.lua Normal file
View File

@@ -0,0 +1,33 @@
return {
"nvim-neo-tree/neo-tree.nvim",
dependencies = {
"nvim-lua/plenary.nvim",
"nvim-tree/nvim-web-devicons",
"MunifTanjim/nui.nvim"
},
cmd = "Neotree",
init = function() vim.g.neo_tree_remove_legacy_commands = true end,
opts = {
close_if_last_window = true,
source_selector = {
winbar = true,
content_layout = "center",
sources = {
{ source = "filesystem" },
{ source = "buffers" },
{ source = "git_status" },
{ source = "diagnostics" }
}
},
group_empty_dirs = true,
window = { width = 30 },
filesystem = {
follow_current_file = true,
hijack_netrw_behavior = "open_current",
use_libuv_file_watcher = true
}
}
}