dotfiles/nvim/.config/nvim/lua/config/treesitter.lua

17 lines
512 B
Lua
Raw Normal View History

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