fix(neovim): remove deprecated key bindings([d and ]d is now default)

ref: https://neovim.io/doc/user/deprecated.html#_diagnostics
[d and ]d is now included in default keymap
This commit is contained in:
qwjyh 2025-01-19 00:42:03 +09:00
parent 44be709356
commit e41c8d5f3a

View file

@ -615,8 +615,6 @@ local lspconfig = require 'lspconfig'
-- See `:help vim.diagnostic.* for documentation on any of the below functions
local opts = { noremap = true, silent = true }
vim.keymap.set('n', '<space>e', vim.diagnostic.open_float, opts)
vim.keymap.set('n', '[d', vim.diagnostic.goto_prev, opts)
vim.keymap.set('n', ']d', vim.diagnostic.goto_next, opts)
vim.keymap.set('n', '<space>q', vim.diagnostic.setloclist, opts)
-- Use an on_attach function to only map the following keys