You are not logged in.
Pages: 1
I try to use the eval plugin with vim, coc, haskell-language-server.
I saw the demo "Evaluation code snippets in comments" here https://haskell-language-server.readthe … tures.html
If I use
-- >>> 2 + 2I do get some suggestions for completion, so something works?
But how do I tell the eval plugin to evaluate this?
Is there a key to press or to click somewhere?
Offline
I got my question answered, In vim I have to do
<leader>clWhere <leader> is a charecter by default: '\'
It still does not work. But this is certainly due to some bad or missing configuration.
Using output channel and tracing verbose I see something about highlight but not codelens:
Trace - 4:51:43 PM] Sending request 'textDocument/documentHighlight - (26)'.
Params: {
"textDocument": {
"uri": "file:/// ... myfile.hs"
},
"position": {
"line": 363,
"character": 11
}
}
[Trace - 4:51:43 PM] Received response 'textDocument/documentHighlight - (26 )' in 1ms.
Result: []Offline
I think I have it now!
I had to add codeLense.enable int the coc-settings:
~/.vim/coc-settings.json file:
{
"codeLens.enable":true,
"codeLens.display": true,
"languageserver": { .....And this is documented in ~/.vim/plugged/coc.nvim/doc/coc-config.txt.
Offline
Pages: 1