Open Bietola opened 3 years ago
I'm using this on my .vimrc:
if (executable('haskell-language-server-wrapper'))
au User lsp_setup call lsp#register_server({
\ 'name': 'haskell-language-server-wrapper',
\ 'cmd': {server_info->['haskell-language-server-wrapper', '--lsp']},
\ 'whitelist': ['haskell'],
\ })
endif
Since I found out that HIE was deprecated.
BTW, to build haskell-language-server:
$ stack install ghcid hspec-discover
$ git clone https://github.com/haskell/haskell-language-server --recurse-submodules
$ cd haskell-language-server
$ stack ./install.hs help
$ stack ./install.hs hls
This takes a looong time here (~ 30min).
The built binaries will be at the usual place: ~/.local/bin
The title is pretty self-explanatory... here are some details:
I have installed haskell-ide-engine from source using the suggested guide. Since my computer couldn't stand a full installation (regaurding mutliple
ghc
versions), I only installed it [haskell-ide-engine] along with theghc
version thatstack
was using globally (8.8.3).My
PATH
variable contains/home/dincio/.local/bin/
(dincio is my username), where my hie (haskell-ide-engine) executable lies, and the hie command is recognized on every terminal I open. I set this in my~/.bash_profile
.Running the vim command
:if executable("hie") echo "hello" end
prints "hello" to the screen, so vim is also aware of the hie executable.All that said, running
LspStatus
when opening an haskell file still yields nothing, and no lsp features seem to work either.Thanks in advacne for any help.