Turn off Solargraph (and RuboCop) linting in Neovim
It took me a bit to figure this one out. I wanted Solargraph LSP in Neovim for the go-to definition and references but I didn't want the live linting in-editor. I'm happy to run RuboCop but at the time I didn't want its notices plastered all over my projects since I hadn't had the time to work through learning how to set up the configs yet.
And on the note of RuboCop - that's what Solargraph uses for linting.
So if you're attempting to disable linting in Solargraph, you're not going to be able to do it in via any of your Solargraph configs or settings, or even your Neovim config.
To disable linting for Solargraph and RuboCop, create a .rubocop.yml
file in the root directory of your project and add the following:
AllCops:
DisabledByDefault: true
Of course, if you're using RuboCop you'll need to address this differently because this will disable all cops.