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.keymap.set("n", "<C-h>", "<cmd>FloatermKill<CR>")
|
||||||
|
|
||||||
vim.lsp.set_log_level("debug")
|
vim.lsp.set_log_level("debug")
|
||||||
|
|
||||||
|
require("leap").set_default_mappings()
|
||||||
|
|||||||
@@ -1,6 +1,3 @@
|
|||||||
return {
|
return {
|
||||||
"ggandor/leap.nvim",
|
"ggandor/leap.nvim",
|
||||||
config = function()
|
|
||||||
require("leap").set_default_mappings()
|
|
||||||
end,
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -13,13 +13,5 @@ return {
|
|||||||
},
|
},
|
||||||
})
|
})
|
||||||
require("mini.notify").setup()
|
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,
|
end,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,10 +5,42 @@ return {
|
|||||||
---@type snacks.Config
|
---@type snacks.Config
|
||||||
opts = {
|
opts = {
|
||||||
bigfile = { enabled = true },
|
bigfile = { enabled = true },
|
||||||
|
|
||||||
dashboard = {
|
dashboard = {
|
||||||
enabled = true,
|
enabled = true,
|
||||||
width = 100,
|
width = 100,
|
||||||
preset = {
|
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 = [[
|
header = [[
|
||||||
░ ░░░░ ░░░ ░░░ ░░ ░░░░ ░░░ ░░░░ ░░
|
░ ░░░░ ░░░ ░░░ ░░ ░░░░ ░░░ ░░░░ ░░
|
||||||
▒ ▒▒▒▒ ▒▒ ▒▒▒▒ ▒▒▒▒▒ ▒▒▒▒▒ ▒▒▒▒ ▒▒ ▒▒▒▒ ▒▒ ▒▒▒▒ ▒▒ ▒▒▒▒ ▒
|
▒ ▒▒▒▒ ▒▒ ▒▒▒▒ ▒▒▒▒▒ ▒▒▒▒▒ ▒▒▒▒ ▒▒ ▒▒▒▒ ▒▒ ▒▒▒▒ ▒▒ ▒▒▒▒ ▒
|
||||||
|
|||||||
Reference in New Issue
Block a user