diff options
| author | Abouzar Parvan <[email protected]> | 2022-04-28 19:00:39 +0430 | 
|---|---|---|
| committer | GitHub <[email protected]> | 2022-04-28 19:00:39 +0430 | 
| commit | 6a66e39f29f8bd1a7dce5e34c0790328f0e0db92 (patch) | |
| tree | dff2e469f7855f7e5388517abdce16af4c3583ca /lua/lvim/core/nvimtree.lua | |
| parent | dd65e285656a5c46c52144f4e082c8e2d1d95757 (diff) | |
feat(icons): make it possible to disable icons (#2529)
Diffstat (limited to 'lua/lvim/core/nvimtree.lua')
| -rw-r--r-- | lua/lvim/core/nvimtree.lua | 11 | 
1 files changed, 6 insertions, 5 deletions
| diff --git a/lua/lvim/core/nvimtree.lua b/lua/lvim/core/nvimtree.lua index 385708ed..d2558563 100644 --- a/lua/lvim/core/nvimtree.lua +++ b/lua/lvim/core/nvimtree.lua @@ -2,6 +2,7 @@ local M = {}  local Log = require "lvim.core.log"  function M.config() +  local vim_show_icons = lvim.use_icons and 1 or 0    lvim.builtin.nvimtree = {      active = true,      on_config_done = nil, @@ -30,7 +31,7 @@ function M.config()        hijack_cursor = false,        update_cwd = false,        diagnostics = { -        enable = true, +        enable = lvim.use_icons,          icons = {            hint = "",            info = "", @@ -90,10 +91,10 @@ function M.config()        },      },      show_icons = { -      git = 1, -      folders = 1, -      files = 1, -      folder_arrows = 1, +      git = vim_show_icons, +      folders = vim_show_icons, +      files = vim_show_icons, +      folder_arrows = vim_show_icons,      },      git_hl = 1,      root_folder_modifier = ":t", | 
