From bc6f6aab3b44c0d5f5680e900b3d4068cac7cddf Mon Sep 17 00:00:00 2001 From: Brahmajit Das Date: Sun, 17 Mar 2024 03:28:22 +0530 Subject: nvim: plugins: nvim-tree: for nvim-tree specific settings Signed-off-by: Brahmajit Das --- lua/plugins/nvim-tree.lua | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 lua/plugins/nvim-tree.lua (limited to 'lua') diff --git a/lua/plugins/nvim-tree.lua b/lua/plugins/nvim-tree.lua new file mode 100644 index 0000000..061ae9e --- /dev/null +++ b/lua/plugins/nvim-tree.lua @@ -0,0 +1,34 @@ +-- disable netrw at the very start of your init.lua (strongly advised) +vim.g.loaded_netrw = 1 +vim.g.loaded_netrwPlugin = 1 + +-- OR setup with some options +require('nvim-tree').setup({ + sort_by = "case_sensitive", + on_attach = "disable", + view = { + centralize_selection = false, + cursorline = true, + debounce_delay = 15, + width = 34, + side = "left", + preserve_window_proportions = false, + number = false, + relativenumber = false, + signcolumn = "yes", + }, + renderer = { + group_empty = true, + highlight_opened_files = "all" + }, + filters = { + dotfiles = true, + }, + git = { + enable = true, + ignore = true, + show_on_dirs = true, + show_on_open_dirs = true, + timeout = 400, + }, +}) -- cgit v1.2.3