mattn

Results 918 comments of mattn

I turn to make this disable in default since virtual text still have problem that cursor location is wrong.

So it should be better to be a dictionary? ``` let lsp_inlayhints_mode = { \ 'insert': ['always', '!curline'], \ 'normal': ['always'], \} ```

Hmm, I guess implementation of always-mode should be difficult.

I added lsp_inlay_hints_mode that only include curline, !curline.

Do you use latest gopls ?

Also you need to add some configuration for vim-lsp. https://github.com/mattn/vim-lsp-settings/blob/dd2858d4f7df7da2c3d30f2b3da39ea6488f3afa/settings/gopls.vim#L10-L18

This inlay-hints implementation does not look-up the names (ex: which the functions or variables). So I guess it is the issue of gopls.

@prabirshrestha I'm not good at callbag. Is there way to get all result of the pipes like below? ``` call lsp#callbag#pipe( \ lsp#callbag#fromList(l:servers), \ lsp#callbag#flatMap({server-> \ lsp#request(server, l:request) \ }),...

I tried to implement with reduce, but seems not work. ``` call lsp#callbag#pipe( \ lsp#callbag#fromList(l:servers), \ lsp#callbag#flatMap({server-> \ lsp#request(server, l:request) \ }), \ lsp#callbag#reduce({acc, curr -> add(acc, curr)}, []), \...

`:LspHover --server=gopls` and `:LspHover --server=efm-langserver` for each commands seems to be working good. ![screenshot](https://user-images.githubusercontent.com/10111/163777448-01c4661e-e06a-4284-9495-46d2b8a5a8e6.gif)