This commit is contained in:
sankalp committed 2024-01-04 15:42:50 +05:45
1 parent 21c52bc914
commit ec1f8204dd
26 files changed
+457 -818

No files matched your search

@@ -0,0 +1,35 @@
---@type string
local xdg_config = vim.env.XDG_CONFIG_HOME or vim.env.HOME .. "/.config"
---@param path string
local function have(path)
return vim.loop.fs_stat(xdg_config .. "/" .. path) ~= nil
end
return {
{
import = "lazyvim.plugins.extras.util.dot",
},
{
"luckasRanarison/tree-sitter-hypr",
enabled = false,
},
{
"luckasRanarison/tree-sitter-hyprlang",
dependencies = {
"nvim-treesitter/nvim-treesitter",
opts = function(_, opts)
if have("hypr") then
if type(opts.ensure_installed) == "table" then
vim.list_extend(opts.ensure_installed, { "hyprlang" })
end
end
end,
},
enabled = function()
return have("hypr")
end,
event = "BufRead */hypr/*.conf",
build = ":TSUpdate hyprlang",
},
}