dotfiles/dot_config/nvim/lua/plugins/nvim-treesitter.lua.tmpl
punkfairie 71cedb1ca1
Update .config/nvim/lua/config/lazy.lua
Update .config/nvim/lua/plugins/conform.lua
Update .config/nvim/lua/plugins/mason.lua
Update .config/nvim/lua/plugins/nvim-lint.lua
Update .config/nvim/lua/plugins/nvim-lspconfig.lua
Update .config/nvim/lua/plugins/nvim-treesitter.lua
Remove .config/nvim/lua/plugins/refactoring.lua
Update tags
2024-06-10 17:48:49 -07:00

49 lines
941 B
Cheetah

return {
{
"nvim-treesitter/nvim-treesitter",
opts = {
ensure_installed = {
-- general
"comment",
-- git
"diff",
-- data/conf
"ini",
"ssh_config",
"toml",
-- web
"html",
"css",
"scss",
"javascript",
"jsdoc",
-- php
"php_only",
"phpdoc",
},
},
config = function(_, opts)
---@class ParserInfo[]
local parser_config = require("nvim-treesitter.parsers").get_parser_configs()
parser_config.blade = {
install_info = {
url = "https://github.com/EmranMR/tree-sitter-blade",
files = {
"src/parser.c",
},
generate_requires_npm = true,
requires_generate_from_grammar = true,
},
filetype = "blade",
}
require("nvim-treesitter.configs").setup(opts)
end,
},
}