Skip to content

Commit 0e1482c

Browse files
committed
languages/haskell: fix haskell-tools options
1 parent 2d8d031 commit 0e1482c

File tree

1 file changed

+3
-13
lines changed

1 file changed

+3
-13
lines changed

modules/plugins/languages/haskell.nix

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,11 @@
2020

2121
defaultServers = ["hls"];
2222
servers = {
23+
# these are a haskell-tools wrapper over the actual lsp options `:help haskell-tools.lsp.ClientOpts`
24+
# see https://github.com/mrcjkb/haskell-tools.nvim/blob/v6.2.0/lua/haskell-tools/lsp/init.lua#L131-L173
25+
# for the real ones
2326
hls = {
24-
enable = false;
2527
cmd = [(getExe' pkgs.haskellPackages.haskell-language-server "haskell-language-server-wrapper") "--lsp"];
26-
filetypes = ["haskell" "lhaskell"];
2728
on_attach =
2829
mkLuaInline
2930
/*
@@ -43,17 +44,6 @@
4344
vim.keymap.set('n', '<localleader>rq', ht.repl.quit, opts)
4445
end
4546
'';
46-
root_dir =
47-
mkLuaInline
48-
/*
49-
lua
50-
*/
51-
''
52-
function(bufnr, on_dir)
53-
local fname = vim.api.nvim_buf_get_name(bufnr)
54-
on_dir(util.root_pattern('hie.yaml', 'stack.yaml', 'cabal.project', '*.cabal', 'package.yaml')(fname))
55-
end
56-
'';
5747
settings = {
5848
haskell = {
5949
formattingProvider = "ormolu";

0 commit comments

Comments
 (0)