From 4f72377143fc0961391fb0e42e751b9f677fca4e Mon Sep 17 00:00:00 2001 From: github-actions Date: Tue, 20 Jul 2021 20:51:24 +0000 Subject: [docgen] Update CONFIG.md skip-checks: true --- CONFIG.md | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/CONFIG.md b/CONFIG.md index 2c0f685e..63ce7d20 100644 --- a/CONFIG.md +++ b/CONFIG.md @@ -2245,16 +2245,23 @@ require'lspconfig'.hls.setup{} Default Values: cmd = { "haskell-language-server-wrapper", "--lsp" } filetypes = { "haskell", "lhaskell" } - lspinfo = function(cfg) - -- return "specific" - if cfg.settings.languageServerHaskell.logFile or false then - return 'logfile: ' .. cfg.settings.languageServerHaskell.logFile + lspinfo = function on_stdout(_, data, _) + local version = data[1] + table.insert(extra, 'version: ' .. version) end - return '' + + local opts = { + cwd = cfg.cwd, + stdout_buffered = true, + on_stdout = on_stdout, + } + local chanid = vim.fn.jobstart({ cfg.cmd[1], '--version' }, opts) + vim.fn.jobwait { chanid } + return extra end, root_dir = root_pattern("*.cabal", "stack.yaml", "cabal.project", "package.yaml", "hie.yaml") settings = { - languageServerHaskell = { + haskell = { formattingProvider = "ormolu" } } -- cgit v1.2.3-70-g09d2