21 lines
720 B
Lua
21 lines
720 B
Lua
-------------------------------------------------
|
|
-- DT'S NEOVIM CONFIGURATION
|
|
-- Neovim website: https://neovim.io/
|
|
-- DT's dotfiles: https://gitlab.com/dwt1/dotfiles
|
|
-------------------------------------------------
|
|
|
|
local status, ts = pcall(require, "nvim-treesitter.configs")
|
|
if not status then
|
|
return
|
|
end
|
|
|
|
ts.setup({
|
|
-- If TS highlights are not enabled at all, or disabled via `disable` prop,
|
|
-- highlighting will fallback to default Vim syntax highlighting
|
|
highlight = {
|
|
enable = true,
|
|
additional_vim_regex_highlighting = { "org" }, -- Required for spellcheck, some LaTex highlights and code block highlights that do not have ts grammar
|
|
},
|
|
ensure_installed = { "org", "lua" }, -- Or run :TSUpdate org
|
|
})
|