mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-25 14:01:06 +00:00
removed blade parser
This commit is contained in:
parent
f90fd6a040
commit
7bb3716736
1 changed files with 2 additions and 24 deletions
|
|
@ -4,30 +4,8 @@ return {
|
||||||
root = { "composer.json", "artisan" },
|
root = { "composer.json", "artisan" },
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"nvim-tressiter/nvim-treesitter",
|
"nvim-treesitter/nvim-treesitter",
|
||||||
opts = function(_, opts)
|
opts = { ensure_installed = { "blade" } },
|
||||||
if type(opts.ensure_installed) == "table" then
|
|
||||||
vim.list_extend(opts.ensure_installed, { "blade", "php" })
|
|
||||||
end
|
|
||||||
|
|
||||||
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" },
|
|
||||||
branch = "main",
|
|
||||||
},
|
|
||||||
filetype = "blade",
|
|
||||||
}
|
|
||||||
|
|
||||||
vim.api.nvim_create_autocmd({ "BufReadPost", "BufNewFile" }, {
|
|
||||||
pattern = { "*.blade.php" },
|
|
||||||
callback = function()
|
|
||||||
vim.treesitter.start(nil, "blade")
|
|
||||||
vim.opt.filetype = "blade"
|
|
||||||
end,
|
|
||||||
})
|
|
||||||
end,
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"mason-org/mason.nvim",
|
"mason-org/mason.nvim",
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue