added treesitter config

This commit is contained in:
paul-loedige
2022-01-07 22:49:31 +01:00
parent 79f07ae2b3
commit 868f5c0ac3
+23
View File
@@ -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