2022-10-19 00:47:07 +01:00
|
|
|
local present, treesitter = pcall(require, "nvim-treesitter.configs")
|
2024-02-12 15:05:56 +00:00
|
|
|
if not present then
|
|
|
|
return
|
|
|
|
end
|
2022-10-19 00:47:07 +01:00
|
|
|
|
|
|
|
require('nvim-treesitter.install').update({ with_sync = true })
|
2024-02-12 15:05:56 +00:00
|
|
|
local present, orgmode = pcall(require, "orgmode")
|
|
|
|
if present then
|
|
|
|
require('orgmode').setup_ts_grammar()
|
|
|
|
end
|
2022-10-19 00:47:07 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
local options = {
|
2024-02-12 15:05:56 +00:00
|
|
|
ensure_installed = { "c", "lua", "haskell", "rust", "markdown", "org" },
|
2022-10-19 00:47:07 +01:00
|
|
|
|
2023-01-14 04:05:17 +00:00
|
|
|
highlight = {
|
|
|
|
enable = true,
|
|
|
|
use_languagetree = true,
|
2024-02-12 15:05:56 +00:00
|
|
|
additional_vim_regex_highlighting = { "org" },
|
2023-01-14 04:05:17 +00:00
|
|
|
},
|
|
|
|
indent = {
|
|
|
|
enable = true,
|
|
|
|
},
|
2022-10-19 00:47:07 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
treesitter.setup(options)
|