2024-02-22 19:57:32 -08:00
|
|
|
return {
|
|
|
|
{
|
|
|
|
"nvim-treesitter/nvim-treesitter",
|
|
|
|
opts = {
|
|
|
|
ensure_installed = {
|
|
|
|
-- general
|
|
|
|
"comment",
|
|
|
|
|
|
|
|
-- git
|
|
|
|
"diff",
|
|
|
|
"git_config",
|
|
|
|
"git_rebase",
|
|
|
|
"gitattributes",
|
|
|
|
"gitcommit",
|
|
|
|
"gitignore",
|
|
|
|
|
|
|
|
-- data/conf
|
|
|
|
"ini",
|
|
|
|
"ssh_config",
|
|
|
|
"toml",
|
|
|
|
|
|
|
|
-- web
|
|
|
|
"html",
|
|
|
|
"css",
|
|
|
|
"scss",
|
|
|
|
"javascript",
|
|
|
|
"jsdoc",
|
|
|
|
"vue",
|
|
|
|
|
|
|
|
-- php
|
2024-03-08 17:27:00 -08:00
|
|
|
"php_only",
|
2024-02-22 19:57:32 -08:00
|
|
|
"phpdoc",
|
|
|
|
|
|
|
|
-- shell
|
|
|
|
"bash",
|
|
|
|
"fish",
|
|
|
|
},
|
|
|
|
},
|
2024-03-08 17:27:00 -08:00
|
|
|
|
|
|
|
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,
|
2024-02-22 19:57:32 -08:00
|
|
|
},
|
2024-03-09 19:18:01 -08:00
|
|
|
|
|
|
|
{
|
|
|
|
"Wansmer/treesj",
|
|
|
|
keys = { "<space>m", "<space>j", "<space>s" },
|
|
|
|
dependencies = { "nvim-treesitter/nvim-treesitter" },
|
|
|
|
opts = {
|
|
|
|
max_join_length = 80,
|
|
|
|
},
|
|
|
|
},
|
2024-02-22 19:57:32 -08:00
|
|
|
}
|