Nvim treesitter: add missing configuration parameters
This commit is contained in:
parent
b3fcfdb3e8
commit
1cf475d7ee
|
@ -1,37 +1,39 @@
|
||||||
return function()
|
return function()
|
||||||
require("nvim-treesitter.configs").setup({
|
require("nvim-treesitter.configs").setup({
|
||||||
ensure_installed = {
|
ensure_installed = {
|
||||||
"bash",
|
"bash",
|
||||||
"c",
|
"css",
|
||||||
"css",
|
"dockerfile",
|
||||||
"dockerfile",
|
"html",
|
||||||
"html",
|
"http",
|
||||||
"http",
|
"java",
|
||||||
"java",
|
"javascript",
|
||||||
"json",
|
"json",
|
||||||
"json5",
|
"json5",
|
||||||
"latex",
|
"latex",
|
||||||
"lua",
|
"lua",
|
||||||
"make",
|
"make",
|
||||||
"markdown",
|
"markdown",
|
||||||
"php",
|
"php",
|
||||||
"python",
|
"python",
|
||||||
"regex",
|
"rasi",
|
||||||
"rasi",
|
"regex",
|
||||||
"rst",
|
"rst",
|
||||||
"scss",
|
"scss",
|
||||||
"toml",
|
"toml",
|
||||||
"tsx",
|
"tsx",
|
||||||
"typescript",
|
"typescript",
|
||||||
"javascript",
|
"yaml",
|
||||||
"yaml",
|
},
|
||||||
},
|
highlight = { enable = true },
|
||||||
highlight = { enable = true },
|
indent = { enable = true },
|
||||||
indent = { enable = true },
|
incremental_selection = { enable = true },
|
||||||
incremental_selection = { enable = true },
|
context_commentstring = { enable = true },
|
||||||
context_commentstring = { enable = true },
|
sync_install = true,
|
||||||
})
|
ignore_install = {},
|
||||||
|
auto_install = true,
|
||||||
|
})
|
||||||
|
|
||||||
-- vim.wo.foldmethod = 'expr'
|
-- vim.wo.foldmethod = 'expr'
|
||||||
-- im.wo.foldexpr = 'nvim_treesitter#foldexpr()'
|
-- im.wo.foldexpr = 'nvim_treesitter#foldexpr()'
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue