From b12e41b39a87e3132dd6a1a965a152016c121d5c Mon Sep 17 00:00:00 2001 From: quirinecker Date: Mon, 26 Oct 2026 10:49:58 +0100 Subject: [PATCH] added haskell development setup to neovim configuration --- modules/editor/neovim.nix | 1 + modules/editor/neovim/lua/plugins/spec/lsp.lua | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) 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 = {