From 1dfbc25ddf108e84cc226ba33d1bb79755c40727 Mon Sep 17 00:00:00 2001 From: Charles Danesi Date: Thu, 7 Nov 2024 13:11:06 -0500 Subject: [PATCH] set nvim-tree options --- .config/nvim/lua/plugins/nvim-tree.lua | 50 ++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/.config/nvim/lua/plugins/nvim-tree.lua b/.config/nvim/lua/plugins/nvim-tree.lua index 3b0a276..defbc91 100644 --- a/.config/nvim/lua/plugins/nvim-tree.lua +++ b/.config/nvim/lua/plugins/nvim-tree.lua @@ -2,17 +2,44 @@ return { "nvim-tree/nvim-tree.lua", dependencies = "nvim-tree/nvim-web-devicons", opts = { + respect_buf_cwd = false, view = { width = 35, relativenumber = true, + signcolumn = "yes", }, renderer = { indent_markers = { enable = true, }, icons = { + web_devicons = { + file = { + enable = true, + color = true, + }, + folder = { + enable = true, + color = true, + }, + }, + git_placement = "after", + modified_placement = "after", + diagnostics_placement = "signcolumn", + padding = " ", + show = { + file = true, + folder = true, + folder_arrow = true, + git = true, + modified = true, + hidden = false, + diagnostics = true, + bookmarks = true, + }, glyphs = { default = "", + modified = "●", folder = { default = "", open = "", @@ -21,6 +48,15 @@ return { arrow_closed = "", -- arrow when folder is closed arrow_open = "", -- arrow when folder is open }, + git = { + unstaged = "✗", + staged = "✓", + unmerged = "", + renamed = "➜", + untracked = "★", + deleted = "", + ignored = "◌", + }, }, }, }, @@ -32,11 +68,25 @@ return { }, }, filters = { + enable = true, + git_ignored = true, + dotfiles = false, custom = { ".DS_Store" }, }, git = { + enable = true, + show_on_dirs = true, ignore = false, }, + diagnostics = { + enable = true, + show_on_open_dirs = true, + }, + modified = { + enable = true, + show_on_dirs = true, + show_on_open_dirs = true, + }, }, config = function(_, opts)