add special_files option
This commit is contained in:
@@ -37,6 +37,7 @@ let g:nvim_tree_hijack_netrw = 0 "1 by default, prevents netrw from automaticall
|
||||
let g:nvim_tree_add_trailing = 1 "0 by default, append a trailing slash to folder names
|
||||
let g:nvim_tree_group_empty = 1 " 0 by default, compact folders that only contain a single folder into one node in the file tree
|
||||
let g:nvim_tree_lsp_diagnostics = 1 "0 by default, will show lsp diagnostics in the signcolumn. See :help nvim_tree_lsp_diagnostics
|
||||
let g:nvim_tree_special_files = [ 'README.md', 'Makefile', 'MAKEFILE' ] " List of filenames that gets highlighted with NvimTreeSpecialFile
|
||||
let g:nvim_tree_show_icons = {
|
||||
\ 'git': 1,
|
||||
\ 'folders': 0,
|
||||
|
||||
@@ -231,6 +231,20 @@ Can be 0 or 1. When 1, will show nvim-lsp diagnostics in the signcolumn
|
||||
of the tree highlighted by diagnostic severity.
|
||||
Code will be executed on `LspDiagnosticsChanged`. 0 by default.
|
||||
|
||||
|g:nvim_tree_special_files| *g:nvim_tree_special_files*
|
||||
|
||||
A list of filenames that gets highlighted with `NvimTreeSpecialFile`.
|
||||
default table is
|
||||
|
||||
>
|
||||
{
|
||||
["Cargo.toml"] = true,
|
||||
Makefile = true,
|
||||
["README.md"] = true,
|
||||
["readme.md"] = true,
|
||||
}
|
||||
<
|
||||
|
||||
==============================================================================
|
||||
INFORMATIONS *nvim-tree-info*
|
||||
|
||||
|
||||
@@ -220,7 +220,7 @@ local picture = {
|
||||
gif = true,
|
||||
}
|
||||
|
||||
local special = {
|
||||
local special = vim.g.nvim_tree_special_files or {
|
||||
["Cargo.toml"] = true,
|
||||
Makefile = true,
|
||||
["README.md"] = true,
|
||||
|
||||
Reference in New Issue
Block a user