-
Notifications
You must be signed in to change notification settings - Fork 38.8k
Change LSP Keybindings to Match the Default gr
Bindings Introduced in Neovim 0.11
#1427
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Any reason to choose gca over gra for code actions? Semi related, but should it be considered that gd (goto definition) should become grd? |
@arerossehaug 😅 just a typo, I amended it to be I have also added a commit for changing the other keybindings, prefixing
|
I have no feelings about this, but making changes to key bindings always ends up with a million angry WHY DID YOU MOVE MY CHEESE? comments. Thoughts from everyone? |
@feoh I agree that changing keybindings can cause confusion, but I have two arguments for this particular changes:
Thoughts? |
If the kickstart project was started today, they would go with the default nvim keybinds. I’m in support of this change, instead of sticking to non default keybinds for historic reasons. |
Two people voting yay is enough for me :) Thanks all! merging. |
…in Neovim 0.11 (nvim-lua#1427) * refactor: change LSP keybindings to the default gr bindings introduced in 0.11 * refactor: modify existing LSP functions to follow convention
…roduced in Neovim 0.11 (nvim-lua#1427)" This reverts commit 1a5787b. I'm not in the mood to learn new keybindings right now. Will do it in my own time.
…roduced in Neovim 0.11 (nvim-lua#1427)" This reverts commit 1a5787b. I'm not in the mood to learn new keybindings right now. Will do it in my own time.
…in Neovim 0.11 (nvim-lua#1427) * refactor: change LSP keybindings to the default gr bindings introduced in 0.11 * refactor: modify existing LSP functions to follow convention
Sorry to necro this, would a pr to add the few leader key bindings back in comments be accepted? For example:
|
* Change LSP Keybindings to Match the Default gr Bindings Introduced in Neovim 0.11 (nvim-lua#1427) * Remove Telescope 0.1 branch lock (nvim-lua#1448)
…in Neovim 0.11 (nvim-lua#1427) * refactor: change LSP keybindings to the default gr bindings introduced in 0.11 * refactor: modify existing LSP functions to follow convention
…in Neovim 0.11 (nvim-lua#1427) * refactor: change LSP keybindings to the default gr bindings introduced in 0.11 * refactor: modify existing LSP functions to follow convention
…in Neovim 0.11 (nvim-lua#1427) * refactor: change LSP keybindings to the default gr bindings introduced in 0.11 * refactor: modify existing LSP functions to follow convention
…in Neovim 0.11 (nvim-lua#1427) * refactor: change LSP keybindings to the default gr bindings introduced in 0.11 * refactor: modify existing LSP functions to follow convention
…in Neovim 0.11 (nvim-lua#1427) * refactor: change LSP keybindings to the default gr bindings introduced in 0.11 * refactor: modify existing LSP functions to follow convention
…in Neovim 0.11 (nvim-lua#1427) * refactor: change LSP keybindings to the default gr bindings introduced in 0.11 * refactor: modify existing LSP functions to follow convention
Use same keymaps as 0.11: nvim-lua/kickstart.nvim#1427 Signed-off-by: Tom Saeger <[email protected]>
… Neovim 0.11 Partially cherry-picked nvim-lua@1a5787b PR nvim-lua#1427
…in Neovim 0.11 (nvim-lua#1427) * refactor: change LSP keybindings to the default gr bindings introduced in 0.11 * refactor: modify existing LSP functions to follow convention
…in Neovim 0.11 (nvim-lua#1427) * refactor: change LSP keybindings to the default gr bindings introduced in 0.11 * refactor: modify existing LSP functions to follow convention
…in Neovim 0.11 (nvim-lua#1427) * refactor: change LSP keybindings to the default gr bindings introduced in 0.11 * refactor: modify existing LSP functions to follow convention
…in Neovim 0.11 (nvim-lua#1427) * refactor: change LSP keybindings to the default gr bindings introduced in 0.11 * refactor: modify existing LSP functions to follow convention
…in Neovim 0.11 (nvim-lua#1427) * refactor: change LSP keybindings to the default gr bindings introduced in 0.11 * refactor: modify existing LSP functions to follow convention
…in Neovim 0.11 (nvim-lua#1427) * refactor: change LSP keybindings to the default gr bindings introduced in 0.11 * refactor: modify existing LSP functions to follow convention
…in Neovim 0.11 (nvim-lua#1427) * refactor: change LSP keybindings to the default gr bindings introduced in 0.11 * refactor: modify existing LSP functions to follow convention
…in Neovim 0.11 (nvim-lua#1427) * refactor: change LSP keybindings to the default gr bindings introduced in 0.11 * refactor: modify existing LSP functions to follow convention
…in Neovim 0.11 (nvim-lua#1427) * refactor: change LSP keybindings to the default gr bindings introduced in 0.11 * refactor: modify existing LSP functions to follow convention
…in Neovim 0.11 (nvim-lua#1427) * refactor: change LSP keybindings to the default gr bindings introduced in 0.11 * refactor: modify existing LSP functions to follow convention
…in Neovim 0.11 (nvim-lua#1427) * refactor: change LSP keybindings to the default gr bindings introduced in 0.11 * refactor: modify existing LSP functions to follow convention
…in Neovim 0.11 (nvim-lua#1427) * refactor: change LSP keybindings to the default gr bindings introduced in 0.11 * refactor: modify existing LSP functions to follow convention
…roduced in Neovim 0.11 (nvim-lua#1427)" Keep legacy keymaps for now This reverts commit 1a5787b.
…in Neovim 0.11 (nvim-lua#1427) * refactor: change LSP keybindings to the default gr bindings introduced in 0.11 * refactor: modify existing LSP functions to follow convention
…in Neovim 0.11 (nvim-lua#1427) * refactor: change LSP keybindings to the default gr bindings introduced in 0.11 * refactor: modify existing LSP functions to follow convention
…in Neovim 0.11 (nvim-lua#1427) * refactor: change LSP keybindings to the default gr bindings introduced in 0.11 * refactor: modify existing LSP functions to follow convention
…in Neovim 0.11 (nvim-lua#1427) * refactor: change LSP keybindings to the default gr bindings introduced in 0.11 * refactor: modify existing LSP functions to follow convention
* master: Update remaining Mason's old address (nvim-lua#1530) fix: rename vim.highlight.on_yank to vim.hl.on_yank (nvim-lua#1482) README: mention fd-find in requirements (nvim-lua#1477) don't lazy-load neo-tree so netrw hijacking on startup works (nvim-lua#1489) Replace vim.opt with vim.o (nvim-lua#1495) feat: switch vim-sleuth for guess-indent.nvim (nvim-lua#1512) Change to Mason's new address (nvim-lua#1516) feat: switch nvim-cmp for blink.cmp (nvim-lua#1426) Remove Telescope `0.1` branch lock (nvim-lua#1448) Change LSP Keybindings to Match the Default `gr` Bindings Introduced in Neovim 0.11 (nvim-lua#1427) fix: minor misspellings (nvim-lua#1450) feat(keymap): move windows without `<C-w>` (nvim-lua#1368) changed Conform's format_on_save lambda so that buffers that match disable_filetypes return nil. This allows you to enable a formatter for langages in the disable_filetypes table to have a formatter that can be run manually with Leader-f but doesnt enable format_on_save for them (nvim-lua#1395) fix: use correct github abmonition syntax (nvim-lua#1414) feat: add `vim.opt.confirm = true` (nvim-lua#1384)
…roduced in Neovim 0.11 (nvim-lua#1427)" Keep legacy keymaps for now This reverts commit 1a5787b.
…in Neovim 0.11 (nvim-lua#1427) * refactor: change LSP keybindings to the default gr bindings introduced in 0.11 * refactor: modify existing LSP functions to follow convention
…in Neovim 0.11 (nvim-lua#1427) * refactor: change LSP keybindings to the default gr bindings introduced in 0.11 * refactor: modify existing LSP functions to follow convention
* fix: minor misspellings (nvim-lua#1450) * fix: minor misspellings * revert change for `-Bbuild` * Change LSP Keybindings to Match the Default `gr` Bindings Introduced in Neovim 0.11 (nvim-lua#1427) * refactor: change LSP keybindings to the default gr bindings introduced in 0.11 * refactor: modify existing LSP functions to follow convention * Remove Telescope `0.1` branch lock (nvim-lua#1448) * feat: switch nvim-cmp for blink.cmp (nvim-lua#1426) * Change to Mason's new address (nvim-lua#1516) * feat: switch vim-sleuth for guess-indent.nvim (nvim-lua#1512) * Replace vim.opt with vim.o (nvim-lua#1495) * Replace vim.opt with vim.o Because it offers a nicer interface and info on hover. For now leave vim.opt when using the table interface (until vim.o with tables is implemented) * Add type hint for vim.opt.rtp * Add a comment about using vim.opt instead of vim.o * don't lazy-load neo-tree so netrw hijacking on startup works (nvim-lua#1489) * README: mention fd-find in requirements (nvim-lua#1477) Fixes nvim-lua#1476 * fix: rename vim.highlight.on_yank to vim.hl.on_yank (nvim-lua#1482) The functions of vim.highlight were renamed to vim.hl on commit 18b43c331d8a0ed87d7cbefe2a18543b8e4ad360 of neovim, which was applied with the release of nvim version 0.11. Now, the use of vim.highlight is deprecated, and instead, one should use vim.hl functions. In practice, vim.highlight is still working, however, asking for help for vim.highlight.on_yank fails (E149), while asking for help for vim.hl.on_yank works as expected. So, by updating the used function, a new user will have easier time looking getting the relevant help. Co-authored-by: Omri Sarig <[email protected]> * Update remaining Mason's old address (nvim-lua#1530) * Initial plugin setup (#1) This adds a basic layer of plugins. But more language and workflow specific plugins are to follow possibly. --------- Co-authored-by: dasvh <[email protected]> Co-authored-by: Theo P. <[email protected]> Co-authored-by: Dmytro Onypko <[email protected]> Co-authored-by: Liam Dyer <[email protected]> Co-authored-by: guru245 <[email protected]> Co-authored-by: Ori Perry <[email protected]> Co-authored-by: pynappo <[email protected]> Co-authored-by: Damjan 9000 <[email protected]> Co-authored-by: Omri Sarig <[email protected]> Co-authored-by: Omri Sarig <[email protected]> Co-authored-by: Carlos Calla Alarcón <[email protected]>
…in Neovim 0.11 (nvim-lua#1427) * refactor: change LSP keybindings to the default gr bindings introduced in 0.11 * refactor: modify existing LSP functions to follow convention
* fix: minor misspellings (nvim-lua#1450) * fix: minor misspellings * revert change for `-Bbuild` * Change LSP Keybindings to Match the Default `gr` Bindings Introduced in Neovim 0.11 (nvim-lua#1427) * refactor: change LSP keybindings to the default gr bindings introduced in 0.11 * refactor: modify existing LSP functions to follow convention * Remove Telescope `0.1` branch lock (nvim-lua#1448) * feat: switch nvim-cmp for blink.cmp (nvim-lua#1426) * Change to Mason's new address (nvim-lua#1516) * feat: switch vim-sleuth for guess-indent.nvim (nvim-lua#1512) * Replace vim.opt with vim.o (nvim-lua#1495) * Replace vim.opt with vim.o Because it offers a nicer interface and info on hover. For now leave vim.opt when using the table interface (until vim.o with tables is implemented) * Add type hint for vim.opt.rtp * Add a comment about using vim.opt instead of vim.o * don't lazy-load neo-tree so netrw hijacking on startup works (nvim-lua#1489) * README: mention fd-find in requirements (nvim-lua#1477) Fixes nvim-lua#1476 * fix: rename vim.highlight.on_yank to vim.hl.on_yank (nvim-lua#1482) The functions of vim.highlight were renamed to vim.hl on commit 18b43c331d8a0ed87d7cbefe2a18543b8e4ad360 of neovim, which was applied with the release of nvim version 0.11. Now, the use of vim.highlight is deprecated, and instead, one should use vim.hl functions. In practice, vim.highlight is still working, however, asking for help for vim.highlight.on_yank fails (E149), while asking for help for vim.hl.on_yank works as expected. So, by updating the used function, a new user will have easier time looking getting the relevant help. Co-authored-by: Omri Sarig <[email protected]> * Update remaining Mason's old address (nvim-lua#1530) * Initial plugin setup (#1) This adds a basic layer of plugins. But more language and workflow specific plugins are to follow possibly. --------- Co-authored-by: dasvh <[email protected]> Co-authored-by: Theo P. <[email protected]> Co-authored-by: Dmytro Onypko <[email protected]> Co-authored-by: Liam Dyer <[email protected]> Co-authored-by: guru245 <[email protected]> Co-authored-by: Ori Perry <[email protected]> Co-authored-by: pynappo <[email protected]> Co-authored-by: Damjan 9000 <[email protected]> Co-authored-by: Omri Sarig <[email protected]> Co-authored-by: Omri Sarig <[email protected]> Co-authored-by: Carlos Calla Alarcón <[email protected]>
Adds 'gr' to which-keys documentation, so users can see that LSP actions are grouped after 'gr' key binds. It used to be directly under 'g', which required no additional grouping info on which-keys. See nvim-lua#1427 for further explanation on the key binds change.
…in Neovim 0.11 (nvim-lua#1427) * refactor: change LSP keybindings to the default gr bindings introduced in 0.11 * refactor: modify existing LSP functions to follow convention
…in Neovim 0.11 (nvim-lua#1427) * refactor: change LSP keybindings to the default gr bindings introduced in 0.11 * refactor: modify existing LSP functions to follow convention
…in Neovim 0.11 (nvim-lua#1427) * refactor: change LSP keybindings to the default gr bindings introduced in 0.11 * refactor: modify existing LSP functions to follow convention
…in Neovim 0.11 (nvim-lua#1427) * refactor: change LSP keybindings to the default gr bindings introduced in 0.11 * refactor: modify existing LSP functions to follow convention
…in Neovim 0.11 (nvim-lua#1427) * refactor: change LSP keybindings to the default gr bindings introduced in 0.11 * refactor: modify existing LSP functions to follow convention
…in Neovim 0.11 (nvim-lua#1427) * refactor: change LSP keybindings to the default gr bindings introduced in 0.11 * refactor: modify existing LSP functions to follow convention
…in Neovim 0.11 (nvim-lua#1427) * refactor: change LSP keybindings to the default gr bindings introduced in 0.11 * refactor: modify existing LSP functions to follow convention
…in Neovim 0.11 (nvim-lua#1427) * refactor: change LSP keybindings to the default gr bindings introduced in 0.11 * refactor: modify existing LSP functions to follow convention
Neovim 0.11 introduced many default LSP keybindings prefixed with
gr
, and this PR changes the Telescope keybindings defined inLspAttach
autocmds to match the default ones.I think changing other keybindings (
<leader>D
for type definition and<leader>ws
for workspace symbols) to haveg
prefix should also be considered.