mirror of
https://github.com/CompeyDev/my-nvim-setup.git
synced 2024-12-13 05:20:38 +00:00
rm unused config in nvimtree | include vim highlighting support by default
This commit is contained in:
parent
3330d1cc06
commit
5c69d46dd6
3 changed files with 6 additions and 13 deletions
|
@ -7,17 +7,19 @@ end
|
||||||
|
|
||||||
local g = vim.g
|
local g = vim.g
|
||||||
|
|
||||||
vim.o.termguicolors = true
|
|
||||||
|
|
||||||
g.nvim_tree_add_trailing = 0 -- append a trailing slash to folder names
|
g.nvim_tree_add_trailing = 0 -- append a trailing slash to folder names
|
||||||
g.nvim_tree_git_hl = git_status
|
g.nvim_tree_git_hl = git_status
|
||||||
g.nvim_tree_gitignore = 0
|
g.nvim_tree_gitignore = 0
|
||||||
g.nvim_tree_highlight_opened_files = 0
|
g.nvim_tree_highlight_opened_files = 0
|
||||||
g.nvim_tree_indent_markers = 1
|
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_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_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 = {
|
g.nvim_tree_show_icons = {
|
||||||
folders = 1,
|
folders = 1,
|
||||||
files = 1,
|
files = 1,
|
||||||
|
@ -47,15 +49,6 @@ g.nvim_tree_icons = {
|
||||||
}
|
}
|
||||||
|
|
||||||
nvimtree.setup {
|
nvimtree.setup {
|
||||||
diagnostics = {
|
|
||||||
enable = false,
|
|
||||||
icons = {
|
|
||||||
hint = "",
|
|
||||||
info = "",
|
|
||||||
warning = "",
|
|
||||||
error = "",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
filters = {
|
filters = {
|
||||||
dotfiles = false,
|
dotfiles = false,
|
||||||
},
|
},
|
||||||
|
|
|
@ -7,6 +7,7 @@ end
|
||||||
ts_config.setup {
|
ts_config.setup {
|
||||||
ensure_installed = {
|
ensure_installed = {
|
||||||
"lua",
|
"lua",
|
||||||
|
"vim",
|
||||||
},
|
},
|
||||||
highlight = {
|
highlight = {
|
||||||
enable = true,
|
enable = true,
|
||||||
|
|
|
@ -68,7 +68,6 @@ return packer.startup(function()
|
||||||
|
|
||||||
use {
|
use {
|
||||||
"nvim-treesitter/nvim-treesitter",
|
"nvim-treesitter/nvim-treesitter",
|
||||||
branch = "0.5-compat",
|
|
||||||
event = "BufRead",
|
event = "BufRead",
|
||||||
config = override_req("nvim_treesitter", "plugins.configs.treesitter"),
|
config = override_req("nvim_treesitter", "plugins.configs.treesitter"),
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue