Skip to content

Commit

Permalink
languages/haskell: fix DAP command definition
Browse files Browse the repository at this point in the history
  • Loading branch information
amadalusia committed Dec 21, 2024
1 parent 52042f6 commit f3f5519
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions modules/plugins/languages/haskell.nix
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,7 @@ in {
},
},
hls = {
cmd = ${
if isList cfg.lsp.package
then expToLua cfg.lsp.package
else ''{"${cfg.lsp.package}/bin/haskell-language-server-wrapper"}''
},
cmd = ${if isList cfg.lsp.package then expToLua cfg.lsp.package else ''{"${cfg.lsp.package}/bin/haskell-language-server-wrapper"}''},
on_attach = function(client, bufnr, ht)
default_on_attach(client, bufnr, ht)
local opts = { noremap = true, silent = true, buffer = bufnr }
Expand All @@ -89,11 +85,7 @@ in {
''}
${optionalString cfg.dap.enable ''
dap = {
cmd = ${
if isList cfg.dap.package
then expToLua cfg.dap.package
else ''${cfg.dap.package}/bin/haskell-debug-adapter''
},
cmd = ${if isList cfg.dap.package then expToLua cfg.dap.package else ''{"${cfg.dap.package}/bin/haskell-debug-adapter"}''},
},
''}
}
Expand Down

0 comments on commit f3f5519

Please sign in to comment.