added treesitter config
This commit is contained in:
@@ -189,6 +189,29 @@ highlight LineNr ctermfg=7
|
||||
highlight CursorLineNr ctermfg=7
|
||||
" }}} Color Scheme "
|
||||
|
||||
" Tree-Sitter {{{ "
|
||||
lua <<EOF
|
||||
require'nvim-treesitter.configs'.setup {
|
||||
-- One of "all", "maintained" (parsers with maintainers), or a list of languages
|
||||
ensure_installed = "maintained",
|
||||
|
||||
-- Install languages synchronously (only applied to `ensure_installed`)
|
||||
sync_install = false,
|
||||
|
||||
highlight = {
|
||||
-- `false` will disable the whole extension
|
||||
enable = true,
|
||||
|
||||
-- Setting this to true will run `:h syntax` and tree-sitter at the same time.
|
||||
-- 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,
|
||||
},
|
||||
}
|
||||
EOF
|
||||
" }}} Tree-Sitter "
|
||||
|
||||
" VimTeX {{{ "
|
||||
let g:vimtex_compiler_progname = 'nvr' " neovim-remote for vimtex
|
||||
let g:vimtex_view_method = 'zathura' " set zathura as basic pdf viewer
|
||||
|
||||
Reference in New Issue
Block a user