mirror of
https://github.com/pratiktri/dotfiles.git
synced 2026-02-04 08:41:43 +05:30
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:
@@ -108,7 +108,14 @@ return {
|
||||
function()
|
||||
Snacks.lazygit.log(opts)
|
||||
end,
|
||||
desc = "Git: Log",
|
||||
desc = "LazyGit: List Git Log",
|
||||
},
|
||||
{
|
||||
"<leader>gL",
|
||||
function()
|
||||
Snacks.git.blame_line(opts)
|
||||
end,
|
||||
desc = "Git: Line Log",
|
||||
},
|
||||
{
|
||||
"<leader>gf",
|
||||
@@ -117,6 +124,13 @@ return {
|
||||
end,
|
||||
desc = "Git: Show File Log",
|
||||
},
|
||||
{
|
||||
"<leader>gO",
|
||||
function()
|
||||
Snacks.gitbrowse.open(opts)
|
||||
end,
|
||||
desc = "Git: Open the file on Browser",
|
||||
},
|
||||
{
|
||||
"]]",
|
||||
function()
|
||||
@@ -154,13 +168,6 @@ return {
|
||||
end,
|
||||
desc = "Toggle Zen Mode",
|
||||
},
|
||||
{
|
||||
"<leader>gO",
|
||||
function()
|
||||
Snacks.gitbrowse.open(opts)
|
||||
end,
|
||||
desc = "Git: Open the file on Browser",
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
@@ -226,10 +233,11 @@ return {
|
||||
-- Document existing key chains
|
||||
spec = {
|
||||
{ "<leader>/", group = "NVIM Scratch Buffer" },
|
||||
{ "<leader>a", group = "AI" },
|
||||
{ "<leader>b", group = "Buffer Operations", icon = { icon = "", color = "orange" } },
|
||||
{ "<leader>a", group = "AI", icon = { icon = "", color = "orange" } },
|
||||
{ "<leader>b", group = "Buffer Operations", icon = { icon = "", color = "orange" } },
|
||||
{ "<leader>c", group = "Code", icon = { icon = "", color = "orange" } },
|
||||
{ "<leader>d", group = "Diagnostics", icon = { icon = "", color = "orange" } },
|
||||
{ "<leader>d", group = "Diagnostics", icon = { icon = "🔬", color = "orange" } },
|
||||
{ "<leader>D", group = "Debug", icon = { icon = "", color = "orange" } },
|
||||
{ "<leader>g", group = "Git", icon = { icon = "", color = "orange" } },
|
||||
{ "<leader>h", group = "Help", icon = { icon = "", color = "orange" } },
|
||||
{ "<leader>n", group = "Neovim Things", icon = { icon = "", color = "orange" } },
|
||||
@@ -237,6 +245,7 @@ return {
|
||||
{ "<leader>s", group = "Search/Grep", icon = { icon = "", color = "orange" } },
|
||||
{ "<leader>t", group = "Unit Test" },
|
||||
{ "<leader>x", group = "Delete/Disable/Remove", icon = { icon = "", color = "orange" } },
|
||||
-- More icons: https://github.com/echasnovski/mini.icons/blob/main/lua/mini/icons.lua#L686
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user