This commit is contained in:
Christian Nieves
2022-12-01 01:11:51 +00:00
parent 3dfc991b0e
commit d3035d8dee
5 changed files with 17 additions and 6 deletions

View File

@ -1,3 +1,6 @@
-- Load custom treesitter grammar for org filetype
require('orgmode').setup_ts_grammar()
require('nvim-treesitter.configs').setup {
-- A list of parser names, or "all"
-- ensure_installed = { "c", "lua", "vim", "java", "kotlin"},
@ -9,13 +12,10 @@ require('nvim-treesitter.configs').setup {
highlight = {
-- `false` will disable the whole extension
enable = true,
-- Required for spellcheck, some LaTex highlights and
-- code block highlights that do not have ts grammar
additional_vim_regex_highlighting = {'org'},
disable = {"java"},
-- 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,
},
}