aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
authorRaphael <glepnir@neovim.pro>2023-07-05 13:49:42 +0800
committerGitHub <noreply@github.com>2023-07-05 13:49:42 +0800
commit6b2dafb8f46fe8e59bdb8aa1baed44c942e18e0d (patch)
treee874bc54038978e07ead4de94a918fe80a13d88f /lua
parentfix(omnisharp): update on_new_config (#2692) (diff)
downloadnvim-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.lua17
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")]],
+ },
+ },
+}