Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(nvim): add nvim-lint with rubocop
Basic setup from [^1]. Basic bundle integration found in [^3]. Open issues: - Linting fails when rubocop is not available in the bundle. One can provide a function for the linter[^2] and should be able to use either the bundled rubocop, or a global rubocop as fallback. - When rubocop itself fails (with error code 2), like when it sees an unrecognized cop in .rubocop.yml, this is unnoticed during editing. - Make rubocop run on BufReadPost, InsertLeave, and TextChanged events. This is mentioned in mfussenegger/nvim-lint#336 [^1]: dietrichm/dotfiles#138 [^2]: mfussenegger/nvim-lint#18 [^3]: https://github.com/pfeiferj/dotfiles/blob/9fe44801e52590610d2090f2c03df6fbb31b6f57/dot_config/nvim/lua/plugins/lint.lua
- Loading branch information