rm unused config in nvimtree | include vim highlighting support by default

This commit is contained in:
siduck 2021-11-19 07:17:09 +05:30
parent 3330d1cc06
commit 5c69d46dd6
3 changed files with 6 additions and 13 deletions

View file

@ -7,17 +7,19 @@ end
local g = vim.g
vim.o.termguicolors = true
g.nvim_tree_add_trailing = 0 -- append a trailing slash to folder names
g.nvim_tree_git_hl = git_status
g.nvim_tree_gitignore = 0
g.nvim_tree_highlight_opened_files = 0
g.nvim_tree_indent_markers = 1
g.nvim_tree_ignore = { ".git", "node_modules", ".cache" }
g.nvim_tree_quit_on_open = 0 -- closes tree when file's opened
g.nvim_tree_root_folder_modifier = table.concat { ":t:gs?$?/..", string.rep(" ", 1000), "?:gs?^??" }
g.nvim_tree_window_picker_exclude = {
filetype = { "notify", "packer", "qf" },
buftype = { "terminal" },
}
g.nvim_tree_show_icons = {
folders = 1,
files = 1,
@ -47,15 +49,6 @@ g.nvim_tree_icons = {
}
nvimtree.setup {
diagnostics = {
enable = false,
icons = {
hint = "",
info = "",
warning = "",
error = "",
},
},
filters = {
dotfiles = false,
},

View file

@ -7,6 +7,7 @@ end
ts_config.setup {
ensure_installed = {
"lua",
"vim",
},
highlight = {
enable = true,

View file

@ -68,7 +68,6 @@ return packer.startup(function()
use {
"nvim-treesitter/nvim-treesitter",
branch = "0.5-compat",
event = "BufRead",
config = override_req("nvim_treesitter", "plugins.configs.treesitter"),
}