diff options
author | Toby Vincent <tobyv@tobyvin.dev> | 2024-06-05 22:33:07 -0500 |
---|---|---|
committer | Toby Vincent <tobyv@tobyvin.dev> | 2024-06-05 22:33:07 -0500 |
commit | 0888a59c3dffb48d9744af0331d6788124799345 (patch) | |
tree | 43b966c4b009adeb6f3a602f552d5b91450acb9d /nvim/.config | |
parent | ed67ef0ec966cb592b0e4fc354c2717eb1a4805d (diff) |
fix(nvim): update new nightly lsp bindings
Diffstat (limited to 'nvim/.config')
-rw-r--r-- | nvim/.config/nvim/lua/tobyvin/keymaps.lua | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/nvim/.config/nvim/lua/tobyvin/keymaps.lua b/nvim/.config/nvim/lua/tobyvin/keymaps.lua index 562c43c..ace2223 100644 --- a/nvim/.config/nvim/lua/tobyvin/keymaps.lua +++ b/nvim/.config/nvim/lua/tobyvin/keymaps.lua @@ -13,14 +13,13 @@ vim.keymap.set("v", "<a-j>", ":move '>+1<cr>gv=gv", { desc = "move +" }) vim.keymap.set("t", "<c-w>", [[<c-\><c-n><c-w>]], { desc = "CTRL-W" }) --- TODO: remove once default binds are established --- Ref: https://github.com/neovim/neovim/issues/28634 --- Ref: https://github.com/neovim/neovim/pull/28649 -vim.keymap.set("n", "crn", vim.lsp.buf.rename, { desc = "vim.lsp.buf.rename()" }) -vim.keymap.set("n", "crr", vim.lsp.buf.code_action, { desc = "vim.lsp.buf.code_action()" }) -vim.keymap.set("x", "<C-R>r", vim.lsp.buf.code_action, { desc = "vim.lsp.buf.code_action()" }) -vim.keymap.set("x", "<C-R><C-R>", vim.lsp.buf.code_action, { desc = "vim.lsp.buf.code_action()" }) -vim.keymap.set("n", "gr", vim.lsp.buf.references, { desc = "vim.lsp.buf.references()" }) +-- TODO: remove once default binds are established (again?) +-- Ref: https://github.com/neovim/neovim/issues/28634 (old) +-- Ref: https://github.com/neovim/neovim/pull/28649 (old) +-- Ref: https://github.com/neovim/neovim/pull/28650 +vim.keymap.set("n", "grn", vim.lsp.buf.rename, { desc = "vim.lsp.buf.rename()" }) +vim.keymap.set("n", "gra", vim.lsp.buf.code_action, { desc = "vim.lsp.buf.code_action()" }) +vim.keymap.set("n", "grr", vim.lsp.buf.references, { desc = "vim.lsp.buf.references()" }) vim.keymap.set("i", "<C-S>", vim.lsp.buf.signature_help, { desc = "vim.lsp.buf.signature_help()" }) vim.keymap.set("o", "o", function() |