diff options
| author | Raphael <glepnir@neovim.pro> | 2023-07-05 13:49:42 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-07-05 13:49:42 +0800 |
| commit | 6b2dafb8f46fe8e59bdb8aa1baed44c942e18e0d (patch) | |
| tree | e874bc54038978e07ead4de94a918fe80a13d88f /lua | |
| parent | fix(omnisharp): update on_new_config (#2692) (diff) | |
| download | nvim-lspconfig-6b2dafb8f46fe8e59bdb8aa1baed44c942e18e0d.tar nvim-lspconfig-6b2dafb8f46fe8e59bdb8aa1baed44c942e18e0d.tar.gz nvim-lspconfig-6b2dafb8f46fe8e59bdb8aa1baed44c942e18e0d.tar.bz2 nvim-lspconfig-6b2dafb8f46fe8e59bdb8aa1baed44c942e18e0d.tar.lz nvim-lspconfig-6b2dafb8f46fe8e59bdb8aa1baed44c942e18e0d.tar.xz nvim-lspconfig-6b2dafb8f46fe8e59bdb8aa1baed44c942e18e0d.tar.zst nvim-lspconfig-6b2dafb8f46fe8e59bdb8aa1baed44c942e18e0d.zip | |
feat: add rubocop support (#2700)
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/lspconfig/server_configurations/rubcop.lua | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/lua/lspconfig/server_configurations/rubcop.lua b/lua/lspconfig/server_configurations/rubcop.lua new file mode 100644 index 00000000..62817b8f --- /dev/null +++ b/lua/lspconfig/server_configurations/rubcop.lua @@ -0,0 +1,17 @@ +local util = require 'lspconfig.util' + +return { + default_config = { + cmd = { 'bundle', 'exec', 'rubocop', '--lsp' }, + filetypes = { 'ruby' }, + root_dir = util.root_pattern('Gemfile', '.git'), + }, + docs = { + description = [[ +https://github.com/rubocop/rubocop + ]], + default_config = { + root_dir = [[root_pattern("Gemfile", ".git")]], + }, + }, +} |
