Skip to content

Commit

Permalink
Remove mappings that are default in Neovim 0.10
Browse files Browse the repository at this point in the history
  • Loading branch information
ldonnez committed May 16, 2024
1 parent 3709951 commit eac828b
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions .config/nvim/lua/plugins/lsp/keymaps.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ local keymap = vim.keymap
local diagnostic = vim.diagnostic

keymap.set("n", "<leader>e", diagnostic.open_float, { silent = true, desc = "Open diagnostic" })
keymap.set("n", "[d", diagnostic.goto_prev, { silent = true, desc = "Go to previous diagnostic" })
keymap.set("n", "]d", diagnostic.goto_next, { silent = true, desc = "Go to next diagnostic" })
keymap.set("n", "<leader>q", diagnostic.setloclist, { silent = true, desc = "Set diagnostics in location list" })

function M.on_attach(_, bufnr)
Expand All @@ -14,7 +12,6 @@ function M.on_attach(_, bufnr)
-- See `:help vim.lsp.*` for documentation on any of the below functions
keymap.set("n", "gD", lsp.buf.declaration, { silent = true, buffer = bufnr, desc = "Go to declaration" })
keymap.set("n", "gd", lsp.buf.definition, { silent = true, buffer = bufnr, desc = "Go to definition" })
keymap.set("n", "K", lsp.buf.hover, { silent = true, buffer = bufnr, desc = "Show type information (hover)" })
keymap.set("n", "gi", lsp.buf.implementation, { silent = true, buffer = bufnr, desc = "Go to implementation" })
keymap.set("n", "<C-k>", lsp.buf.signature_help, { silent = true, buffer = bufnr, desc = "Show signature" })
keymap.set(
Expand Down

0 comments on commit eac828b

Please sign in to comment.