Various optimizations
This commit is contained in:
parent
f0396d0fb3
commit
864818059c
@ -32,3 +32,6 @@ global.glow_border = "rounded"
|
|||||||
|
|
||||||
-- leader settings
|
-- leader settings
|
||||||
global.mapleader = ' '
|
global.mapleader = ' '
|
||||||
|
|
||||||
|
-- indent blankline settings
|
||||||
|
global.indent_blankline_char = '▏'
|
||||||
|
@ -146,7 +146,8 @@ return require('packer').startup(function(use)
|
|||||||
}
|
}
|
||||||
use {
|
use {
|
||||||
"lukas-reineke/indent-blankline.nvim",
|
"lukas-reineke/indent-blankline.nvim",
|
||||||
after = {"nvim-treesitter"},
|
after = {"nvim-treesitter", "nvim-treesitter-context"},
|
||||||
|
event = "UIEnter",
|
||||||
config = function() require "plugins.indent-blankline" end
|
config = function() require "plugins.indent-blankline" end
|
||||||
}
|
}
|
||||||
use {
|
use {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
require("indent_blankline").setup {
|
require("indent_blankline").setup {
|
||||||
buftype_exclude = {"terminal", "help", "packer", "NvimTree", "tagbar"},
|
buftype_exclude = {"terminal", "help", "packer", "NvimTree", "tagbar"},
|
||||||
char = "▏",
|
char = "▏", -- also set as global env
|
||||||
space_char_blankline = ' ',
|
space_char_blankline = ' ',
|
||||||
max_indent_increase = 2,
|
max_indent_increase = 2,
|
||||||
show_first_indent_level = false,
|
show_first_indent_level = false,
|
||||||
|
@ -5,25 +5,20 @@ require'nvim-tree'.setup {
|
|||||||
hijack_netrw = true,
|
hijack_netrw = true,
|
||||||
open_on_setup = false,
|
open_on_setup = false,
|
||||||
ignore_ft_on_setup = {},
|
ignore_ft_on_setup = {},
|
||||||
auto_close = false,
|
open_on_tab = true,
|
||||||
open_on_tab = false,
|
|
||||||
hijack_cursor = true,
|
hijack_cursor = true,
|
||||||
update_cwd = false,
|
update_cwd = true,
|
||||||
update_to_buf_dir = {enable = true, auto_open = true},
|
update_to_buf_dir = {enable = true, auto_open = true},
|
||||||
diagnostics = {
|
diagnostics = {
|
||||||
enable = true,
|
enable = true,
|
||||||
icons = {hint = "", info = "", warning = "", error = ""}
|
icons = {hint = "", info = "", warning = "", error = ""}
|
||||||
},
|
},
|
||||||
update_focused_file = {enable = false, update_cwd = false, ignore_list = {}},
|
|
||||||
system_open = {cmd = nil, args = {}},
|
system_open = {cmd = nil, args = {}},
|
||||||
filters = {dotfiles = false, custom = {}},
|
|
||||||
view = {
|
view = {
|
||||||
width = 30,
|
width = 30,
|
||||||
height = 30,
|
height = 30,
|
||||||
hide_root_folder = false,
|
hide_root_folder = false,
|
||||||
side = 'left',
|
side = 'left',
|
||||||
auto_resize = false,
|
|
||||||
mappings = {custom_only = false, list = {}}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@ require'nvim-treesitter.configs'.setup {
|
|||||||
-- Set this to `true` if you depend on 'syntax' being enabled (like for indentation).
|
-- 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.
|
-- 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
|
-- Instead of true it can also be a list of languages
|
||||||
additional_vim_regex_highlighting = false,
|
additional_vim_regex_highlighting = true,
|
||||||
use_languagetree = true
|
use_languagetree = true
|
||||||
},
|
},
|
||||||
indent = {enable = true}
|
indent = {enable = true}
|
||||||
|
Loading…
Reference in New Issue
Block a user