fix(dot): treesitter for hypr was renamed to hyprlang

This commit is contained in:
Folke Lemaitre
2024-01-20 12:50:34 +01:00
parent 879e29504d
commit 979bb952a6

View File

@ -10,7 +10,7 @@ return {
-- Add Hyprland Parser
{
"luckasRanarison/tree-sitter-hypr",
"luckasRanarison/tree-sitter-hyprlang",
enabled = function()
return have("hypr")
end,
@ -19,11 +19,11 @@ return {
config = function()
-- Fix ft detection for hyprland
vim.filetype.add({
pattern = { [".*/hypr/.*%.conf"] = "hypr" },
pattern = { [".*/hypr/.*%.conf"] = "hyprlang" },
})
require("nvim-treesitter.parsers").get_parser_configs().hypr = {
require("nvim-treesitter.parsers").get_parser_configs().hyprlang = {
install_info = {
url = "https://github.com/luckasRanarison/tree-sitter-hypr",
url = "https://github.com/luckasRanarison/tree-sitter-hyprlang",
files = { "src/parser.c" },
branch = "master",
},