summaryrefslogtreecommitdiff
path: root/lua
diff options
context:
space:
mode:
authorBrahmajit Das <brahmajit.xyz@gmail.com>2024-03-17 03:28:22 +0530
committerBrahmajit Das <brahmajit.xyz@gmail.com>2024-03-17 03:28:22 +0530
commitbc6f6aab3b44c0d5f5680e900b3d4068cac7cddf (patch)
treef37533c8a8aa7a4ea475e16a8b4b11f3f4cc96df /lua
parentf949eb0e426de5b56630307212f5169e0c13de39 (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.lua34
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,
+ },
+})