From e41c8d5f3abd35c721b064a58676ad9a81d9d11d Mon Sep 17 00:00:00 2001 From: qwjyh Date: Sun, 19 Jan 2025 00:42:03 +0900 Subject: [PATCH] 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 --- dotfiles/neovim/init.lua | 2 -- 1 file changed, 2 deletions(-) diff --git a/dotfiles/neovim/init.lua b/dotfiles/neovim/init.lua index 5369b45..4d9e226 100644 --- a/dotfiles/neovim/init.lua +++ b/dotfiles/neovim/init.lua @@ -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', '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', 'q', vim.diagnostic.setloclist, opts) -- Use an on_attach function to only map the following keys