From 2efb780528e49825d8f888bb8627bde653487851 Mon Sep 17 00:00:00 2001 From: Daniel Fichtinger Date: Mon, 23 Dec 2024 03:45:02 -0500 Subject: [PATCH] AutoYADM commit: 2024-12-23 03:45:02 --- .config/nvim/lua/plugins/noice.lua | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/.config/nvim/lua/plugins/noice.lua b/.config/nvim/lua/plugins/noice.lua index 8e820306..311403e0 100644 --- a/.config/nvim/lua/plugins/noice.lua +++ b/.config/nvim/lua/plugins/noice.lua @@ -6,4 +6,30 @@ return { lsp_doc_border = true, }, }, + keys = { + { + "", + 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" }, + }, + }, }