You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been looking for a way to integrate rubyfmt with my ruby-lsp vim (via coc.nvim), but was unable to do so.
Rubocop integration in coc-settings.json works perfectly as ruby-lsp provides integration with it by default:
"languageserver": {
"ruby-lsp": {
"command": "ruby-lsp",
"initializationOptions": {
"formatter": "auto" // will use rubocop (if installed) or falls back to syntax_tree
},
"filetypes": ["ruby"]
}
},
I think something like ruby-lsp-rubyfmt would be necessary to integrate with ruby-lsp in vim. I don't think such project exists. Also my hope is that I can configure multiple formatters with different priorities, so that I can run rubyfmt first, and then/afterwards rubocop (or standardrb).
Also I'm coming to a realisation that rubyfmt will probably never support/read rubocop's (or standard's) config (#445).
I've been looking for a way to integrate rubyfmt with my ruby-lsp vim (via coc.nvim), but was unable to do so.
Rubocop integration in coc-settings.json works perfectly as ruby-lsp provides integration with it by default:
I think something like ruby-lsp-rubyfmt would be necessary to integrate with ruby-lsp in vim. I don't think such project exists. Also my hope is that I can configure multiple formatters with different priorities, so that I can run rubyfmt first, and then/afterwards rubocop (or standardrb).
Also I'm coming to a realisation that rubyfmt will probably never support/read rubocop's (or standard's) config (#445).
Edit: I've found similar request in vscode-ruby-lsp repo: Shopify/ruby-lsp#1740
The text was updated successfully, but these errors were encountered: