mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-21 16:39:06 +02:00
fix(java): minisurround jdtls keybind conflict (#4886)
## Description Fixes the keybind conflict with jdtls and mini-surround plugin. When pressing "\<gs\>" or "\<gS\>" to start the surround once the java language server starts, it replaces the surround bind with "goto super" and "goto subjects". When pressing "\<gs\>" quickly, it attempts the command "goto super". When pressing "\<gs\>" slowly, it brings up "which-key" and the surround bind works. ## Related Issue(s) None ## Screenshots Pressing "\<gs\>" quickly  Pressing "\<gs\>" slowly  ## Checklist - [x] I've read the [CONTRIBUTING](https://github.com/LazyVim/LazyVim/blob/main/CONTRIBUTING.md) guidelines.
This commit is contained in:
parent
c979225c37
commit
30fac4206a
1 changed files with 2 additions and 2 deletions
|
@ -197,8 +197,8 @@ return {
|
|||
{ "<leader>cx", group = "extract" },
|
||||
{ "<leader>cxv", require("jdtls").extract_variable_all, desc = "Extract Variable" },
|
||||
{ "<leader>cxc", require("jdtls").extract_constant, desc = "Extract Constant" },
|
||||
{ "gs", require("jdtls").super_implementation, desc = "Goto Super" },
|
||||
{ "gS", require("jdtls.tests").goto_subjects, desc = "Goto Subjects" },
|
||||
{ "<leader>cgs", require("jdtls").super_implementation, desc = "Goto Super" },
|
||||
{ "<leader>cgS", require("jdtls.tests").goto_subjects, desc = "Goto Subjects" },
|
||||
{ "<leader>co", require("jdtls").organize_imports, desc = "Organize Imports" },
|
||||
},
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue