From e814f8e8bef00bfab0a1af0260474a0f139e4688 Mon Sep 17 00:00:00 2001 From: siggsy Date: Fri, 17 Oct 2025 09:41:09 +0200 Subject: [PATCH] languages/haskell: remove invalid vim.g options Haskell is not configured with lspconfig, but rather with haskell-tools.nvim. This commit fixes "conversion" made in 39efdc799. Without this, users are met with nvim errors about invalid vim.g options --- modules/plugins/languages/haskell.nix | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/modules/plugins/languages/haskell.nix b/modules/plugins/languages/haskell.nix index ac18fe55..32b8dda9 100644 --- a/modules/plugins/languages/haskell.nix +++ b/modules/plugins/languages/haskell.nix @@ -21,9 +21,7 @@ defaultServers = ["hls"]; servers = { hls = { - enable = false; cmd = [(getExe' pkgs.haskellPackages.haskell-language-server "haskell-language-server-wrapper") "--lsp"]; - filetypes = ["haskell" "lhaskell"]; on_attach = mkLuaInline /* @@ -43,17 +41,6 @@ vim.keymap.set('n', 'rq', ht.repl.quit, opts) end ''; - root_dir = - mkLuaInline - /* - lua - */ - '' - function(bufnr, on_dir) - local fname = vim.api.nvim_buf_get_name(bufnr) - on_dir(util.root_pattern('hie.yaml', 'stack.yaml', 'cabal.project', '*.cabal', 'package.yaml')(fname)) - end - ''; settings = { haskell = { formattingProvider = "ormolu";