setup neotree

This commit is contained in:
Adithya 2024-02-11 00:58:03 +05:30
parent 30bf151a1b
commit a2380addff
Signed by: adtya
GPG key ID: 48FC9915FFD326D0
2 changed files with 26 additions and 0 deletions

16
after/plugin/neotree.lua Normal file
View file

@ -0,0 +1,16 @@
require('neo-tree').setup{
close_if_last_window = false,
enable_diagnostics = true,
enable_git_status = true,
filesystem = {
filtered_items = {
visible = true
},
follow_current_file = {
enabled = true
},
use_libuv_file_watcher = true
}
}
vim.keymap.set("n", "<leader>1", "<cmd>Neotree toggle<Return>")

View file

@ -13,6 +13,16 @@ return require('packer').startup(function(use)
} }
} }
use {
"nvim-neo-tree/neo-tree.nvim",
branch = "v3.x",
requires = {
"nvim-lua/plenary.nvim",
"nvim-tree/nvim-web-devicons",
"MunifTanjim/nui.nvim"
}
}
use { use {
'nvim-lualine/lualine.nvim', 'nvim-lualine/lualine.nvim',
requires = { 'nvim-tree/nvim-web-devicons', opt = true } requires = { 'nvim-tree/nvim-web-devicons', opt = true }