2022-08-20 03:58:36 +00:00
|
|
|
local status, ts = pcall(require, "nvim-treesitter.configs")
|
|
|
|
if (not status) then return end
|
|
|
|
|
|
|
|
ts.setup {
|
2022-02-04 04:47:31 +00:00
|
|
|
-- One of "all", "maintained" (parsers with maintainers), or a list of languages
|
2022-10-17 15:51:22 +00:00
|
|
|
ensure_installed = {"python", "css", "html", "lua", "javascript", "vue", "c", "markdown", "rst", "cpp"},
|
2022-02-04 04:47:31 +00:00
|
|
|
highlight = {
|
2022-05-01 07:50:29 +00:00
|
|
|
enable = true,
|
|
|
|
additional_vim_regex_highlighting = false,
|
2022-02-04 04:47:31 +00:00
|
|
|
},
|
|
|
|
indent = {
|
2022-08-17 19:24:43 +00:00
|
|
|
enable = true,
|
2022-02-04 04:47:31 +00:00
|
|
|
}
|
|
|
|
}
|
2022-02-08 11:55:24 +00:00
|
|
|
-- vim.opt.foldmethod = "expr"
|
|
|
|
-- vim.opt.foldexpr = "nvim_treesitter#foldexpr()"
|