Upd keymaps and dashboard

This commit is contained in:
Valeriy Filippov
2026-03-11 09:43:29 +03:00
parent 5081396ccf
commit 97efab296d
3 changed files with 10 additions and 4 deletions

View File

@@ -55,7 +55,8 @@ return {
{ icon = "", key = "ff", desc = "Find File", action = ":Telescope find_files" },
{ icon = "", key = "fs", desc = "Find String", action = ":Telescope live_grep" },
{ icon = "", key = "s", desc = "Restore Session", action = ":AutoSession restore"},
{ icon = "󰒲 ", key = "L", desc = "Lazy UI", action = ":Lazy", enabled = package.loaded.lazy ~= nil },
{ icon = "󰒲 ", key = "L", desc = "Lazy UI", action = ":Lazy" },
{ icon = "", key = "M", desc = "Mason UI", action = ":Mason" },
{ icon = "", key = "G", desc = "LazyGit", action = function() Snacks.lazygit() end},
{ icon = "", key = "q", desc = "Quit", action = ":qa" },
},

View File

@@ -12,6 +12,7 @@ return {
local telescope = require("telescope")
local actions = require("telescope.actions")
---@diagnostic disable-next-line undefined-field
telescope.setup({
defaults = {
path_display = { "smart" },
@@ -19,12 +20,14 @@ return {
i = {
["<C-k>"] = actions.move_selection_previous, -- move to prev result
["<C-j>"] = actions.move_selection_next, -- move to next result
["<C-a>"] = actions.add_to_qflist, -- add all to qflist
["<C-q>"] = actions.send_selected_to_qflist, -- add to qflist
},
},
},
})
---@diagnostic disable-next-line undefined-field
telescope.load_extension("fzf")
end,
}