changed keybinds or something
oo description leap was intelligent and doesnt overwrite user defined keybinds
This commit is contained in:
2
init.lua
2
init.lua
@@ -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()
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
return {
|
||||
"ggandor/leap.nvim",
|
||||
config = function()
|
||||
require("leap").set_default_mappings()
|
||||
end,
|
||||
}
|
||||
|
||||
@@ -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,
|
||||
}
|
||||
|
||||
@@ -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 = [[
|
||||
░ ░░░░ ░░░ ░░░ ░░ ░░░░ ░░░ ░░░░ ░░
|
||||
▒ ▒▒▒▒ ▒▒ ▒▒▒▒ ▒▒▒▒▒ ▒▒▒▒▒ ▒▒▒▒ ▒▒ ▒▒▒▒ ▒▒ ▒▒▒▒ ▒▒ ▒▒▒▒ ▒
|
||||
|
||||
Reference in New Issue
Block a user