neoclide / coc-solargraph

Solargraph extension for coc.nvim
202 stars 10 forks source link

coc-fix-current not working #51

Closed Haelle closed 3 years ago

Haelle commented 3 years ago

NVIM v0.4.3 coc.nvim version: 0.0.79-67cc18bcbf Ubuntu 18.04 Ruby 2.4.2

On a line with a lint info, when I run coc-fix-current I got the following error : [coc.nvim] No quickfix action available.

However when I run :call CocAction('format') it fixes everything in the file.

Do you have any idea how I can get Solargraph fix only one error ?

# coc-settings.json
{
  "coc.preferences.formatOnSaveFiletypes": ["ruby"],
  "solargraph.diagnostics": true
}

I also tried adding this, but it doesn't help :

{
  "solargraph.autoformat": true,
  "solargraph.formatting": true,
  "solargraph.hover": true
}
chemzqm commented 3 years ago

Should be problem of your language server, checkout https://github.com/neoclide/coc.nvim/wiki/Debug-language-server#using-output-channel