fix: Gitignore rules not being applied on new nodes. (#415)

This commit is contained in:
Sindre T. Strøm
2021-05-31 09:12:59 +02:00
committed by GitHub
parent 3a5b7c87f3
commit 9aed1acb47
2 changed files with 9 additions and 5 deletions

View File

@@ -64,6 +64,12 @@ function M.get_icon_state()
}
end
function M.use_git()
return M.get_icon_state().show_git_icon
or vim.g.nvim_tree_git_hl == 1
or vim.g.nvim_tree_gitignore == 1
end
function M.nvim_tree_callback(callback_name)
return string.format(":lua require'nvim-tree'.on_keypress('%s')<CR>", callback_name)
end