diff --git a/modules/editor/neovim.nix b/modules/editor/neovim.nix index eece616..002737e 100644 --- a/modules/editor/neovim.nix +++ b/modules/editor/neovim.nix @@ -46,6 +46,7 @@ let pkgs.tinymist pkgs.dart pkgs.tree-sitter + pkgs.haskell-language-server ]; in { diff --git a/modules/editor/neovim/lua/plugins/spec/lsp.lua b/modules/editor/neovim/lua/plugins/spec/lsp.lua index d85b938..76bad54 100644 --- a/modules/editor/neovim/lua/plugins/spec/lsp.lua +++ b/modules/editor/neovim/lua/plugins/spec/lsp.lua @@ -120,7 +120,8 @@ local function lsp_setup() 'eslint', 'nushell', 'tinymist', - 'dartls' + 'dartls', + 'hls' -- 'jdtls' }) @@ -159,6 +160,9 @@ local function lsp_setup() })) vim.lsp.config('dartls', with_defaults(require("plugins.spec.server_configurations.dart"))) + vim.lsp.config('hls', with_defaults({ + cmd = { "haskell-language-server-wrapper", "--lsp" }, + })) vim.diagnostic.config({ virtual_text = {