Need help with hls in neovim - Haskell

Welcome to the Functional Programming Zulip Chat Archive. You can join the chat here.

Kevin Cheung

I am having trouble getting haskell language server to work in neovim via its built-in LSP support.

I have Neovim 0.6.1 installed on macOS Monterey and used nvim-lsp-installer https://github.com/williamboman/nvim-lsp-installer to install the haskell language server hls.

Unfortunately, when I open a .hs file, I get an error. :LspInfo shows

    Language client log: /Users/test/.cache/nvim/lsp.log
        Detected filetype:   haskell

        0 client(s) attached to this buffer:

        Other clients that match the filetype: haskell

        Config: hls
          filetypes:         haskell, lhaskell
            root directory:    /Users/test/Software/haskell/palindrome-chec
         ker
           cmd:               haskell-language-server-wrapper --lsp
          cmd is executable: Unable to find executable. Please check your path and ensure the server is installed
           autostart:         true
           custom handlers:

         Configured servers list: hls

Could anyone who has had success using neovim Lsp with haskell language server point me in the right direction?

Sridhar Ratnakumar

I think you may have better luck with coc.nvim.

Matt

the message looks pretty clear: Unable to find executable. Please check your path and ensure the serv it doesnt find the binary

Matt

hls works splendidly in neovim