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
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040
2 changed files with 2 additions and 1 deletions

View file

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

View file

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