Various optimizations

This commit is contained in:
juan 2022-05-28 23:54:46 +08:00
parent f0396d0fb3
commit 864818059c
Signed by: juan
GPG Key ID: 5C1E5093C74F1DC7
5 changed files with 9 additions and 10 deletions

View File

@ -32,3 +32,6 @@ global.glow_border = "rounded"
-- leader settings
global.mapleader = ' '
-- indent blankline settings
global.indent_blankline_char = ''

View File

@ -146,7 +146,8 @@ return require('packer').startup(function(use)
}
use {
"lukas-reineke/indent-blankline.nvim",
after = {"nvim-treesitter"},
after = {"nvim-treesitter", "nvim-treesitter-context"},
event = "UIEnter",
config = function() require "plugins.indent-blankline" end
}
use {

View File

@ -1,6 +1,6 @@
require("indent_blankline").setup {
buftype_exclude = {"terminal", "help", "packer", "NvimTree", "tagbar"},
char = "",
char = "", -- also set as global env
space_char_blankline = ' ',
max_indent_increase = 2,
show_first_indent_level = false,

View File

@ -5,25 +5,20 @@ require'nvim-tree'.setup {
hijack_netrw = true,
open_on_setup = false,
ignore_ft_on_setup = {},
auto_close = false,
open_on_tab = false,
open_on_tab = true,
hijack_cursor = true,
update_cwd = false,
update_cwd = true,
update_to_buf_dir = {enable = true, auto_open = true},
diagnostics = {
enable = true,
icons = {hint = "", info = "", warning = "", error = ""}
},
update_focused_file = {enable = false, update_cwd = false, ignore_list = {}},
system_open = {cmd = nil, args = {}},
filters = {dotfiles = false, custom = {}},
view = {
width = 30,
height = 30,
hide_root_folder = false,
side = 'left',
auto_resize = false,
mappings = {custom_only = false, list = {}}
}
}

View File

@ -6,7 +6,7 @@ require'nvim-treesitter.configs'.setup {
-- Set this to `true` if you depend on 'syntax' being enabled (like for indentation).
-- Using this option may slow down your editor, and you may see some duplicate highlights.
-- Instead of true it can also be a list of languages
additional_vim_regex_highlighting = false,
additional_vim_regex_highlighting = true,
use_languagetree = true
},
indent = {enable = true}