Rubocop LSP

Mar 19, 2024 #ruby

Running rubocop in lsp mode is pretty sweet 🍬

Before this, my neovim setup synchronously called the rubocop command to auto format the file upon every save. While this was sped up a bit by using the --server flag, it is nowhere near as fast as running rubcop in lsp mode using the --lsp flag. Taking advantage of neovim’s support of the language server protocol, I was able to integrate this seamlessly into my setup. It’s been great for diagnostics too 🤓