diff options
Diffstat (limited to 'start/lspconfig-0.1.8/lua/lspconfig/server_configurations/rubocop.lua')
-rw-r--r-- | start/lspconfig-0.1.8/lua/lspconfig/server_configurations/rubocop.lua | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/start/lspconfig-0.1.8/lua/lspconfig/server_configurations/rubocop.lua b/start/lspconfig-0.1.8/lua/lspconfig/server_configurations/rubocop.lua new file mode 100644 index 0000000..0d2cd29 --- /dev/null +++ b/start/lspconfig-0.1.8/lua/lspconfig/server_configurations/rubocop.lua @@ -0,0 +1,17 @@ +local util = require 'lspconfig.util' + +return { + default_config = { + cmd = { '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")]], + }, + }, +} |