fix(hypr): automatically update/install hypr treesitter parser when needed

This commit is contained in:
Folke Lemaitre
2023-10-10 07:51:00 +02:00
parent 23a0004a86
commit 88d465c3ef
2 changed files with 2 additions and 1 deletions

View File

@ -13,6 +13,7 @@ return {
"luckasRanarison/tree-sitter-hypr",
enabled = have("hypr"),
event = "BufRead */hypr/*.conf",
build = ":TSUpdate hypr",
config = function()
-- Fix ft detection for hyprland
vim.filetype.add({

View File

@ -34,7 +34,7 @@ return {
end,
},
},
cmd = { "TSUpdateSync" },
cmd = { "TSUpdateSync", "TSUdate", "TSIntsall" },
keys = {
{ "<c-space>", desc = "Increment selection" },
{ "<bs>", desc = "Decrement selection", mode = "x" },