Add luadoc and phpdoc treesitter modules
This commit is contained in:
@@ -17,10 +17,20 @@
|
|||||||
-- https://github.com/nvim-treesitter/nvim-treesitter
|
-- https://github.com/nvim-treesitter/nvim-treesitter
|
||||||
|
|
||||||
require("nvim-treesitter.configs").setup({
|
require("nvim-treesitter.configs").setup({
|
||||||
|
ensure_installed = {
|
||||||
|
"c",
|
||||||
|
"lua",
|
||||||
|
"vim",
|
||||||
|
"vimdoc",
|
||||||
|
"query",
|
||||||
|
"luadoc",
|
||||||
|
"phpdoc",
|
||||||
|
},
|
||||||
auto_install = true,
|
auto_install = true,
|
||||||
|
|
||||||
highlight = {
|
highlight = {
|
||||||
enable = true,
|
enable = true,
|
||||||
|
disable = {},
|
||||||
},
|
},
|
||||||
|
|
||||||
-- Indentation based on treesitter for the = operator.
|
-- Indentation based on treesitter for the = operator.
|
||||||
@@ -28,6 +38,7 @@ require("nvim-treesitter.configs").setup({
|
|||||||
indent = {
|
indent = {
|
||||||
enable = true,
|
enable = true,
|
||||||
},
|
},
|
||||||
|
|
||||||
})
|
})
|
||||||
|
|
||||||
vim.opt.foldmethod = "expr"
|
vim.opt.foldmethod = "expr"
|
||||||
|
|||||||
Reference in New Issue
Block a user