changed keybinds or something

oo description

leap was intelligent and doesnt overwrite user defined keybinds
This commit is contained in:
voidarclabs
2025-05-14 20:14:22 +01:00
parent 1371bc635d
commit 74636d1cab
4 changed files with 34 additions and 11 deletions

View File

@@ -26,3 +26,5 @@ vim.keymap.set("n", "<C-k>", "<cmd>FloatermNew lazygit<CR>")
vim.keymap.set("n", "<C-h>", "<cmd>FloatermKill<CR>")
vim.lsp.set_log_level("debug")
require("leap").set_default_mappings()

View File

@@ -1,6 +1,3 @@
return {
"ggandor/leap.nvim",
config = function()
require("leap").set_default_mappings()
end,
}

View File

@@ -13,13 +13,5 @@ return {
},
})
require("mini.notify").setup()
require("mini.surround").setup({
mappings = {
add = "gsa", -- Add surrounding
delete = "gsd", -- Delete surrounding
find = "gsf", -- Find surrounding
replace = "gsr", -- Replace surrounding
},
})
end,
}

View File

@@ -5,10 +5,42 @@ return {
---@type snacks.Config
opts = {
bigfile = { enabled = true },
dashboard = {
enabled = true,
width = 100,
preset = {
keys = {
{ icon = "", key = "f", desc = "Find File", action = ":lua Snacks.dashboard.pick('files')" },
{ icon = "", key = "n", desc = "New File", action = ":ene | startinsert" },
{
icon = "",
key = "g",
desc = "Find Text",
action = ":lua Snacks.dashboard.pick('live_grep')",
},
{
icon = "",
key = "r",
desc = "Recent Files",
action = ":lua Snacks.dashboard.pick('oldfiles')",
},
{
icon = "",
key = "c",
desc = "Config",
action = ":lua Snacks.dashboard.pick('files', {cwd = vim.fn.stdpath('config')})",
},
{ icon = "", key = "U", desc = "Restore Session", section = "session" },
{
icon = "󰒲 ",
key = "L",
desc = "Lazy",
action = ":Lazy",
enabled = package.loaded.lazy ~= nil,
},
{ icon = "", key = "q", desc = "Quit", action = ":qa" },
},
header = [[
░ ░░░░ ░░░ ░░░ ░░ ░░░░ ░░░ ░░░░ ░░
▒ ▒▒▒▒ ▒▒ ▒▒▒▒ ▒▒▒▒▒ ▒▒▒▒▒ ▒▒▒▒ ▒▒ ▒▒▒▒ ▒▒ ▒▒▒▒ ▒▒ ▒▒▒▒ ▒