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