AutoYADM commit: 2024-12-23 04:00:02

This commit is contained in:
Daniel Fichtinger 2024-12-23 04:00:02 -05:00
parent 2efb780528
commit ad6ba5644a
3 changed files with 23 additions and 8 deletions

View file

@ -21,6 +21,11 @@ vim.keymap.set({ "i", "n" }, "<C-t>", "<Nop>")
-- vim.notify("test")
-- end)
-- Better Scroll
map({ "n" }, "<C-e>", "<C-y>", { noremap = true, desc = "Scroll Up" })
map({ "n" }, "<C-n>", "<C-e>", { noremap = true, desc = "Scroll Down" })
-- Snacks.toggle.zen():map("<leader>uz")
map({ "n" }, "cl", "vgu", { noremap = true, desc = "Lowercase current char" })
map({ "n" }, "cu", "vgU", { noremap = true, desc = "Uppercase current char" })

View file

@ -68,8 +68,8 @@ return {
["<C-CR>"] = { "select_and_accept", "fallback" },
["<C-e>"] = { "hide", "show" },
["<C-y>"] = { "show_documentation", "hide_documentation" },
["<C-u>"] = { "scroll_documentation_up" },
["<C-d>"] = { "scroll_documentation_down" },
["<C-u>"] = { "scroll_documentation_up", "fallback" },
["<C-d>"] = { "scroll_documentation_down", "fallback" },
["<C-n>"] = { "snippet_forward" },
["<C-p>"] = { "snippet_backward" },
["<Up>"] = { "select_prev", "fallback" },

View file

@ -8,28 +8,38 @@ return {
},
keys = {
{
"<c-h>",
"<c-d>",
function()
if not require("noice.lsp").scroll(4) then
return "<c-f>"
return "<c-d>"
end
end,
silent = true,
expr = true,
desc = "Scroll Forward",
mode = { "i", "n", "s" },
mode = { "i" },
},
{
"<c-l>",
"<c-u>",
function()
if not require("noice.lsp").scroll(-4) then
return "<c-b>"
return "<c-u>"
end
end,
silent = true,
expr = true,
desc = "Scroll Backward",
mode = { "i", "n", "s" },
mode = { "i" },
},
{
"<C-y>",
function()
require("noice").cmd("dismiss")
end,
silent = true,
expr = true,
desc = "Dismiss Noice",
mode = { "i" },
},
},
}