diff options
author | Brahmajit Das <brahmajit.xyz@gmail.com> | 2024-03-17 03:28:22 +0530 |
---|---|---|
committer | Brahmajit Das <brahmajit.xyz@gmail.com> | 2024-03-17 03:28:22 +0530 |
commit | bc6f6aab3b44c0d5f5680e900b3d4068cac7cddf (patch) | |
tree | f37533c8a8aa7a4ea475e16a8b4b11f3f4cc96df /lua | |
parent | f949eb0e426de5b56630307212f5169e0c13de39 (diff) |
nvim: plugins: nvim-tree: for nvim-tree specific settings
Signed-off-by: Brahmajit Das <brahmajit.xyz@gmail.com>
Diffstat (limited to 'lua')
-rw-r--r-- | lua/plugins/nvim-tree.lua | 34 |
1 files changed, 34 insertions, 0 deletions
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, + }, +}) |