diff --git a/modules/plugins/languages/haskell.nix b/modules/plugins/languages/haskell.nix index f8e17b75..3cb1f4a4 100644 --- a/modules/plugins/languages/haskell.nix +++ b/modules/plugins/languages/haskell.nix @@ -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 } @@ -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"}''}, }, ''} }