diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2022-06-12 21:57:33 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2022-06-12 21:57:33 +0200 |
commit | dedeac9a1a22c31c8fff6bb9405c7649e2787504 (patch) | |
tree | d0106a12f7a215ed9e0d68a534fd70cd4d01a1d4 /lua | |
parent | 3cadcfe1ee8d853d21b3a1c44094ae1bd13c3b20 (diff) | |
download | vim-dedeac9a1a22c31c8fff6bb9405c7649e2787504.zip vim-dedeac9a1a22c31c8fff6bb9405c7649e2787504.tar.gz |
nvim-tree : nvim_tree_icons -> renderer.icons.glyphs
Diffstat (limited to 'lua')
-rw-r--r-- | lua/user/nvim-tree.lua | 44 |
1 files changed, 24 insertions, 20 deletions
diff --git a/lua/user/nvim-tree.lua b/lua/user/nvim-tree.lua index 999158c..23d3b24 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 @@ -45,6 +25,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 = { |