From 425499ab843511c1d8f3f5b0168b4eff0eefed1a Mon Sep 17 00:00:00 2001 From: Soliprem Date: Tue, 3 Dec 2024 17:55:07 +0100 Subject: [PATCH] gleam: fixed lsp and treesitter --- modules/plugins/languages/gleam.nix | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/modules/plugins/languages/gleam.nix b/modules/plugins/languages/gleam.nix index 3ac56715..f7a98cce 100644 --- a/modules/plugins/languages/gleam.nix +++ b/modules/plugins/languages/gleam.nix @@ -10,6 +10,7 @@ inherit (lib.lists) isList; inherit (lib.types) enum either listOf package str; inherit (lib.nvim.lua) expToLua; + inherit (lib.nvim.types) mkGrammarOption; cfg = config.vim.languages.gleam; @@ -18,7 +19,7 @@ gleam = { package = pkgs.gleam; lspConfig = '' - lspconfig.basedpyright.setup{ + lspconfig.gleam.setup{ capabilities = capabilities, on_attach = default_on_attach, cmd = ${ @@ -36,11 +37,7 @@ in { treesitter = { enable = mkEnableOption "Gleam treesitter" // {default = config.vim.languages.enableTreesitter;}; - package = mkOption { - type = package; - default = pkgs.vimPlugins.nvim-treesitter.builtGrammars.gleam; - description = "Gleam treesitter grammar to use"; - }; + package = mkGrammarOption pkgs "gleam"; }; lsp = {