Neovim's built-in LSP with Ruby and Rails | Backtick Blog

08-Jul-2021 2225
Neovim 0.5 was released on Friday, to much fanfare. It includes a built-in support for Microsoft’s Language Server Protocol. LSP adds features like completion, go to definition, documentation on hover, format, rename and refactor. LSP standardises the protocol for this interaction between languages and editors and offers a number of advantages over ctags. One killer advantage is that LSP understands scope, so jump to definitions are verifiably accurate.I couldn’t find a Ruby specific guide for setting up LSP in Neovim, so, after spending some time on it today, here it is. This should get you up and running with Neovim’s built-in LSP, configured for Solargraph, optimised for Rails, and using either Rubocop or StandardRB for linting.
Use coupon code:

RUBYONRAILS

to get 30% discount on our bundle!
Prepare for your next tech interview with our comprehensive collection of programming interview guides. Covering JavaScript, Ruby on Rails, React, and Python, these highly-rated books offer thousands of essential questions and answers to boost your interview success. Buy our 'Ultimate Job Interview Preparation eBook Bundle' featuring 2200+ questions across multiple languages. Ultimate Job Interview Preparation eBook Bundle