feat(neovim): Keymap enhacements

- Keep keymaps 2 character long
- In case of conflicts choose Capital letter
- Lsp: cI -> ch
- LspSaga: cpf -> cF, cpt -> cT, cpi -> cI,
- navbuddy: o -> / (search at current level)
- new: snack: gL -> Popup git line log
- new: Ctrl+` -> floating terminal (Lspsaga)
- Whichkey: Consistent icons
This commit is contained in:
Pratik Tripathy
2025-07-28 10:59:12 +05:30
parent b132395c0a
commit 39efa2af1f
4 changed files with 38 additions and 79 deletions

View File

@@ -243,17 +243,18 @@ return {
-- kind = require("config.util").icons.kind_lspsaga,
kind = require("catppuccin.groups.integrations.lsp_saga").custom_kind(),
},
implement = { enabled = true },
symbol_in_winbar = {
enable = true,
hide_keyword = true,
},
lightbulb = {
virtual_text = false,
},
lightbulb = { virtual_text = false },
outline = { auto_preview = false },
})
-- Keymaps in code-lsp.lua
vim.keymap.set({ "n", "t" }, "<C-`>", "<cmd>Lspsaga term_toggle<cr>", { desc = "Toggle Floating Terminal" })
-- Rest of the keymaps in ../core/lsp.lua
end,
},
@@ -277,20 +278,16 @@ return {
size = "80%",
},
mappings = {
-- Fuzzy finder at current level.
["f"] = actions.telescope({
-- Telescope search symbols at current level
["/"] = actions.telescope({
layout_config = {
height = 0.8,
width = 0.8,
},
}),
-- Show preview of current node
["o"] = actions.toggle_preview(),
-- Default Mappings on the popup
--
-- ["f"] = Search the children nodes using telescope
--
-- ["J"] = actions.move_down(), -- Move focused node down
-- ["K"] = actions.move_up(), -- Move focused node up
--