summaryrefslogtreecommitdiff
path: root/lua/user
diff options
context:
space:
mode:
authorVito G. Graffagnino <vito@graffagnino.xyz>2022-06-03 17:50:57 +0100
committerVito G. Graffagnino <vito@graffagnino.xyz>2022-06-03 17:50:57 +0100
commite02f42bdffc77b0744a68fcabe41b4238d9335e1 (patch)
tree253fd7c0d25aa17acc588993cfe4a41245d3ce6e /lua/user
parent790e7d495083464d8e69c9dd4782853b33122293 (diff)
Moved the global variables into the setup. Also incorporated the name
changes nvim_tree_icons -> renderer.icons.glyph
Diffstat (limited to 'lua/user')
-rw-r--r--lua/user/nvim-tree.lua45
1 files changed, 24 insertions, 21 deletions
diff --git a/lua/user/nvim-tree.lua b/lua/user/nvim-tree.lua
index 9b6aa42..e88a027 100644
--- a/lua/user/nvim-tree.lua
+++ b/lua/user/nvim-tree.lua
@@ -1,25 +1,5 @@
-- following options are the default
-- each of these are documented in `:help nvim-tree.OPTION_NAME`
-vim.g.nvim_tree_icons = {
- default = "",
- symlink = "",
- git = {
- unstaged = "",
- staged = "S",
- unmerged = "",
- renamed = "➜",
- deleted = "",
- untracked = "U",
- ignored = "◌",
- },
- folder = {
- default = "",
- open = "",
- empty = "",
- empty_open = "",
- symlink = "",
- },
-}
local status_ok, nvim_tree = pcall(require, "nvim-tree")
if not status_ok then
@@ -42,7 +22,6 @@ nvim_tree.setup {
"dashboard",
"alpha",
},
- auto_close = true,
open_on_tab = false,
hijack_cursor = false,
update_cwd = true,
@@ -50,6 +29,30 @@ nvim_tree.setup {
enable = true,
auto_open = true,
},
+ renderer = {
+ icons = {
+ glyphs = {
+ default = "",
+ symlink = "",
+ git = {
+ unstaged = "",
+ staged = "S",
+ unmerged = "",
+ renamed = "➜",
+ deleted = "",
+ untracked = "U",
+ ignored = "◌",
+ },
+ folder = {
+ default = "",
+ open = "",
+ empty = "",
+ empty_open = "",
+ symlink = "",
+ },
+ },
+ },
+ },
diagnostics = {
enable = true,
icons = {