Skip to content

Commit

Permalink
feat(hyprlang): use mason-lspconfig for managing hyprls installat…
Browse files Browse the repository at this point in the history
…ion and setup
  • Loading branch information
mehalter committed Aug 5, 2024
1 parent 96b765b commit 3c72999
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions lua/astrocommunity/pack/hyprlang/init.lua
Original file line number Diff line number Diff line change
@@ -1,14 +1,20 @@
---@type LazySpec
return {
-- mason ensure install hyprls
{
"williamboman/mason-lspconfig.nvim",
optional = true,
opts = function(_, opts)
opts.ensure_installed = require("astrocore").list_insert_unique(opts.ensure_installed, { "hyprls" })
end,
},
{
"WhoIsSethDaniel/mason-tool-installer.nvim",
optional = true,
opts = function(_, opts)
opts.ensure_installed = require("astrocore").list_insert_unique(opts.ensure_installed, { "hyprls" })
end,
},

{
"AstroNvim/astrocore",
optional = true,
Expand All @@ -26,13 +32,6 @@ return {
},
},
},
{
"AstroNvim/astrolsp",
opts = function(_, opts)
local astrocore = require "astrocore"
opts.servers = astrocore.list_insert_unique(opts.servers, { "hyprls" })
end,
},
-- treesitter support for hyprlang
{
"nvim-treesitter/nvim-treesitter",
Expand Down

0 comments on commit 3c72999

Please sign in to comment.