35 lines
635 B
Lua
35 lines
635 B
Lua
return {
|
|
"folke/noice.nvim",
|
|
event = "VeryLazy",
|
|
opts = {
|
|
presets = {
|
|
lsp_doc_border = true,
|
|
},
|
|
},
|
|
keys = {
|
|
{
|
|
"<c-h>",
|
|
function()
|
|
if not require("noice.lsp").scroll(4) then
|
|
return "<c-f>"
|
|
end
|
|
end,
|
|
silent = true,
|
|
expr = true,
|
|
desc = "Scroll Forward",
|
|
mode = { "i", "n", "s" },
|
|
},
|
|
{
|
|
"<c-l>",
|
|
function()
|
|
if not require("noice.lsp").scroll(-4) then
|
|
return "<c-b>"
|
|
end
|
|
end,
|
|
silent = true,
|
|
expr = true,
|
|
desc = "Scroll Backward",
|
|
mode = { "i", "n", "s" },
|
|
},
|
|
},
|
|
}
|