[Treesitter] Enable folding, add parsers
This commit is contained in:
@@ -15,6 +15,10 @@ vim.opt.expandtab = true
|
|||||||
vim.opt.breakindent = true
|
vim.opt.breakindent = true
|
||||||
vim.opt.linebreak = true
|
vim.opt.linebreak = true
|
||||||
|
|
||||||
|
-- folding
|
||||||
|
vim.wo.foldmethod = 'expr'
|
||||||
|
vim.wo.foldexpr = 'v:lua.vim.treesitter.foldexpr()'
|
||||||
|
|
||||||
-- line numbers
|
-- line numbers
|
||||||
vim.wo.number = true
|
vim.wo.number = true
|
||||||
vim.wo.cursorline = true
|
vim.wo.cursorline = true
|
||||||
|
@@ -19,11 +19,13 @@ return {
|
|||||||
-- "latex",
|
-- "latex",
|
||||||
"lua",
|
"lua",
|
||||||
"markdown",
|
"markdown",
|
||||||
|
"meson",
|
||||||
"nginx",
|
"nginx",
|
||||||
"php",
|
"php",
|
||||||
"python",
|
"python",
|
||||||
"rasi",
|
"rasi",
|
||||||
"requirements",
|
"requirements",
|
||||||
|
"robots",
|
||||||
"ruby",
|
"ruby",
|
||||||
"rust",
|
"rust",
|
||||||
"scss",
|
"scss",
|
||||||
@@ -37,6 +39,7 @@ return {
|
|||||||
"vue",
|
"vue",
|
||||||
"xml",
|
"xml",
|
||||||
"yaml",
|
"yaml",
|
||||||
|
"zathurarc"
|
||||||
},
|
},
|
||||||
sync_install = false,
|
sync_install = false,
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user