mirror of
https://git.korhonen.cc/FunctionalHacker/dotfiles.git
synced 2024-11-18 21:27:42 +00:00
38 lines
616 B
Lua
38 lines
616 B
Lua
return function()
|
|
require("nvim-treesitter.configs").setup({
|
|
ensure_installed = {
|
|
"bash",
|
|
"c",
|
|
"css",
|
|
"dockerfile",
|
|
"html",
|
|
"http",
|
|
"java",
|
|
"json",
|
|
"json5",
|
|
"latex",
|
|
"lua",
|
|
"make",
|
|
"markdown",
|
|
"php",
|
|
"python",
|
|
"regex",
|
|
"rasi",
|
|
"rst",
|
|
"scss",
|
|
"toml",
|
|
"tsx",
|
|
"typescript",
|
|
"javascript",
|
|
"yaml",
|
|
},
|
|
highlight = { enable = true },
|
|
indent = { enable = true },
|
|
incremental_selection = { enable = true },
|
|
context_commentstring = { enable = true },
|
|
})
|
|
|
|
-- vim.wo.foldmethod = 'expr'
|
|
-- im.wo.foldexpr = 'nvim_treesitter#foldexpr()'
|
|
end
|