neoclide / coc-eslint

Eslint extension for coc.nvim
MIT License
396 stars 25 forks source link

Is there any configuration for easily opening a recommendation link? #132

Closed ramuyk closed 2 years ago

ramuyk commented 2 years ago

Hi,

I'm struggling a little with finding out a way to go to the recommended links on coc-eslint... Considering I have a vim configuration which doesn't use set mouse=a I can right-click the popup as the following:

Screenshot_20220523_233301

However, in this example it'll break the link in two lines and only capture https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/ (it'll miss display-name.md on the link). If I use a configuration set mouse=a it's worse because I can't right-click the recommended link, I need to use a workaround like using set mouse=nich just so I still have the option of right-clicking it while the text is in Visual mode.

I'm not sure if I'm missing some functionality on coc-eslint... But since eslint always recommends documentation links it would be nice having an easy way of going to the link. Is it currently possible?

chemzqm commented 2 years ago

:h CocAction('openlink') focus the window by <C-w>w if it's focusable.