2022-08-23 22:12:01 +03:00
|
|
|
return function()
|
|
|
|
require'nvim-treesitter.configs'.setup {
|
|
|
|
ensure_installed = {
|
|
|
|
'bash', 'c', 'css', 'dockerfile', 'html', 'http', 'java', 'json',
|
|
|
|
'json5', 'latex', 'lua', 'make', 'markdown', 'php', 'python',
|
2022-09-08 20:24:47 +03:00
|
|
|
'regex', 'rasi', 'rst', 'scss', 'toml', 'tsx', 'typescript',
|
|
|
|
'javascript', 'yaml'
|
2022-08-23 22:12:01 +03:00
|
|
|
},
|
|
|
|
highlight = {enable = true},
|
|
|
|
indent = {enable = true},
|
|
|
|
incremental_selection = {enable = true},
|
|
|
|
context_commentstring = {enable = true}
|
|
|
|
}
|
2022-04-22 09:50:18 +03:00
|
|
|
|
2022-08-23 22:12:01 +03:00
|
|
|
-- vim.wo.foldmethod = 'expr'
|
|
|
|
-- im.wo.foldexpr = 'nvim_treesitter#foldexpr()'
|
2022-08-23 17:56:24 +03:00
|
|
|
end
|