From 1f192b6a2452b673652b0bb16b94266a341e585d Mon Sep 17 00:00:00 2001 From: ueaner Date: Tue, 7 Feb 2023 11:53:18 +0800 Subject: [PATCH] fix #191 Release unused `` `` `` keymaps in `insert mode` --- lua/lazyvim/plugins/lsp/keymaps.lua | 1 - lua/lazyvim/plugins/ui.lua | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/lua/lazyvim/plugins/lsp/keymaps.lua b/lua/lazyvim/plugins/lsp/keymaps.lua index c26058dc..c57f0998 100644 --- a/lua/lazyvim/plugins/lsp/keymaps.lua +++ b/lua/lazyvim/plugins/lsp/keymaps.lua @@ -18,7 +18,6 @@ function M.get() { "gt", "Telescope lsp_type_definitions", desc = "Goto Type Definition" }, { "K", vim.lsp.buf.hover, desc = "Hover" }, { "gK", vim.lsp.buf.signature_help, desc = "Signature Help", has = "signatureHelp" }, - { "", vim.lsp.buf.signature_help, mode = "i", desc = "Signature Help", has = "signatureHelp" }, { "]d", M.diagnostic_goto(true), desc = "Next Diagnostic" }, { "[d", M.diagnostic_goto(false), desc = "Prev Diagnostic" }, { "]e", M.diagnostic_goto(true, "ERROR"), desc = "Next Error" }, diff --git a/lua/lazyvim/plugins/ui.lua b/lua/lazyvim/plugins/ui.lua index c4641de3..24cf42d5 100644 --- a/lua/lazyvim/plugins/ui.lua +++ b/lua/lazyvim/plugins/ui.lua @@ -203,8 +203,8 @@ return { { "snl", function() require("noice").cmd("last") end, desc = "Noice Last Message" }, { "snh", function() require("noice").cmd("history") end, desc = "Noice History" }, { "sna", function() require("noice").cmd("all") end, desc = "Noice All" }, - { "", function() if not require("noice.lsp").scroll(4) then return "" end end, silent = true, expr = true, desc = "Scroll forward", mode = {"i", "n", "s"} }, - { "", function() if not require("noice.lsp").scroll(-4) then return "" end end, silent = true, expr = true, desc = "Scroll backward", mode = {"i", "n", "s"}}, + { "", function() if not require("noice.lsp").scroll(4) then return "" end end, silent = true, expr = true, desc = "Scroll forward", mode = {"n", "s"} }, + { "", function() if not require("noice.lsp").scroll(-4) then return "" end end, silent = true, expr = true, desc = "Scroll backward", mode = {"n", "s"}}, }, },