diff --git a/after/plugin/neotree.lua b/after/plugin/neotree.lua new file mode 100644 index 0000000..5158354 --- /dev/null +++ b/after/plugin/neotree.lua @@ -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", "1", "Neotree toggle") diff --git a/lua/plugins.lua b/lua/plugins.lua index a176e4f..f33e6e2 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -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 { 'nvim-lualine/lualine.nvim', requires = { 'nvim-tree/nvim-web-devicons', opt = true }