diff options
| author | Marc Busqué <marc@lamarciana.com> | 2023-12-06 09:57:05 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-12-06 16:57:05 +0800 |
| commit | 53ff4f7358bcace4355edc2855b9671a38e82cd2 (patch) | |
| tree | 766d009ef6ad4e89641ef372f908b49dd11daac9 | |
| parent | docs: update server_configurations.md (diff) | |
| download | nvim-lspconfig-53ff4f7358bcace4355edc2855b9671a38e82cd2.tar nvim-lspconfig-53ff4f7358bcace4355edc2855b9671a38e82cd2.tar.gz nvim-lspconfig-53ff4f7358bcace4355edc2855b9671a38e82cd2.tar.bz2 nvim-lspconfig-53ff4f7358bcace4355edc2855b9671a38e82cd2.tar.lz nvim-lspconfig-53ff4f7358bcace4355edc2855b9671a38e82cd2.tar.xz nvim-lspconfig-53ff4f7358bcace4355edc2855b9671a38e82cd2.tar.zst nvim-lspconfig-53ff4f7358bcace4355edc2855b9671a38e82cd2.zip | |
fix(rubocop): don't auto-detect bundler, to avoid surprising configuration behavior (#2923)
Ref. #2716. The referenced PR changes got somehow lost when it came to the removal of the `on_new_config` function.
| -rw-r--r-- | lua/lspconfig/server_configurations/rubocop.lua | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/lua/lspconfig/server_configurations/rubocop.lua b/lua/lspconfig/server_configurations/rubocop.lua index 0d494326..0d2cd29b 100644 --- a/lua/lspconfig/server_configurations/rubocop.lua +++ b/lua/lspconfig/server_configurations/rubocop.lua @@ -6,13 +6,6 @@ return { filetypes = { 'ruby' }, root_dir = util.root_pattern('Gemfile', '.git'), }, - on_new_config = function(config, root_dir) - -- prepend 'bundle exec' to cmd if bundler is being used - local gemfile_path = util.path.join(root_dir, 'Gemfile') - if util.path.exists(gemfile_path) then - config.cmd = { 'bundle', 'exec', unpack(config.cmd) } - end - end, docs = { description = [[ https://github.com/rubocop/rubocop |
