feat : option to disable git status on nvimtree (#487)
This commit is contained in:
parent
cc48bfb5c8
commit
595be18680
2 changed files with 9 additions and 4 deletions
|
@ -77,7 +77,10 @@ M.plugins = {
|
|||
},
|
||||
options = {
|
||||
lspconfig = {
|
||||
servers = {} -- eg: "HTML"
|
||||
servers = {} -- eg: "html"
|
||||
},
|
||||
nvimtree = {
|
||||
disable_git = 1
|
||||
},
|
||||
statusline = { -- statusline related options
|
||||
-- these are filetypes, not pattern matched
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
local present, tree_c = pcall(require, "nvim-tree.config")
|
||||
local git_status = require("core.utils").load_config().plugins.options.nvimtree.disable_git
|
||||
|
||||
if not present then
|
||||
return
|
||||
end
|
||||
|
@ -15,8 +17,8 @@ g.nvim_tree_auto_ignore_ft = { "dashboard" } -- don't open tree on specific fiyp
|
|||
g.nvim_tree_auto_open = 0
|
||||
g.nvim_tree_disable_netrw = 1
|
||||
g.nvim_tree_follow = 1
|
||||
g.nvim_tree_git_hl = 1
|
||||
g.nvim_tree_gitignore = 1
|
||||
g.nvim_tree_git_hl = git_status
|
||||
g.nvim_tree_gitignore = git_status
|
||||
g.nvim_tree_hide_dotfiles = 0
|
||||
g.nvim_tree_highlight_opened_files = 0
|
||||
g.nvim_tree_hijack_netrw = 0
|
||||
|
@ -34,7 +36,7 @@ g.nvim_tree_show_icons = {
|
|||
folders = 1,
|
||||
-- folder_arrows= 1
|
||||
files = 1,
|
||||
git = 1,
|
||||
git = git_status,
|
||||
}
|
||||
|
||||
g.nvim_tree_icons = {
|
||||
|
|
Loading…
Reference in a new issue