aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksa Vučković <aleksav013@gmail.com>2022-06-01 00:21:48 +0200
committerAleksa Vučković <aleksav013@gmail.com>2022-06-01 00:21:48 +0200
commit90493748e58fcc1dd56000628e01079c64b6d44e (patch)
treeb25353feefc815fabeee5877042fc0a5607657ef
parent594afd2fcb9d108d7d704f46b2d0398dea9644ee (diff)
nvim-tree changes
-rw-r--r--lua/user/nvim-tree.lua44
1 files changed, 24 insertions, 20 deletions
diff --git a/lua/user/nvim-tree.lua b/lua/user/nvim-tree.lua
index fb0a91d..378366e 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
@@ -92,4 +72,28 @@ nvim_tree.setup {
cmd = "trash",
require_confirm = true,
},
+ renderer = {
+ icons = {
+ glyphs = {
+ default = "",
+ symlink = "",
+ git = {
+ unstaged = "",
+ staged = "S",
+ unmerged = "",
+ renamed = "➜",
+ deleted = "",
+ untracked = "U",
+ ignored = "◌",
+ },
+ folder = {
+ default = "",
+ open = "",
+ empty = "",
+ empty_open = "",
+ symlink = "",
+ },
+ },
+ }
+ }
}