From 6b2dafb8f46fe8e59bdb8aa1baed44c942e18e0d Mon Sep 17 00:00:00 2001 From: Raphael Date: Wed, 5 Jul 2023 13:49:42 +0800 Subject: feat: add rubocop support (#2700) --- lua/lspconfig/server_configurations/rubcop.lua | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 lua/lspconfig/server_configurations/rubcop.lua (limited to 'lua') 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")]], + }, + }, +} -- cgit v1.2.3-70-g09d2