Add descriptions to existing keybinds
This commit is contained in:
parent
701d4a73fa
commit
87b1a0a045
1 changed files with 45 additions and 8 deletions
|
@ -68,7 +68,10 @@ in
|
||||||
{
|
{
|
||||||
key = "T";
|
key = "T";
|
||||||
action = "<cmd>Neotree<cr>";
|
action = "<cmd>Neotree<cr>";
|
||||||
options.silent = true;
|
options = {
|
||||||
|
silent = true;
|
||||||
|
desc = "Open Neotree";
|
||||||
|
};
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -101,18 +104,22 @@ in
|
||||||
{
|
{
|
||||||
key = "<C-h>";
|
key = "<C-h>";
|
||||||
action = "left";
|
action = "left";
|
||||||
|
options.desc = "Tmux Left";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
key = "<C-j>";
|
key = "<C-j>";
|
||||||
action = "down";
|
action = "down";
|
||||||
|
options.desc = "Tmux Down";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
key = "<C-k>";
|
key = "<C-k>";
|
||||||
action = "up";
|
action = "up";
|
||||||
|
options.desc = "Tmux Up";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
key = "<C-l>";
|
key = "<C-l>";
|
||||||
action = "right";
|
action = "right";
|
||||||
|
options.desc = "Tmux Right";
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
@ -158,15 +165,44 @@ in
|
||||||
enable = true;
|
enable = true;
|
||||||
keymaps = {
|
keymaps = {
|
||||||
diagnostic = {
|
diagnostic = {
|
||||||
"<leader>j" = "goto_next";
|
"<leader>j" = {
|
||||||
"<leader>k" = "goto_prev";
|
action = "goto_next";
|
||||||
|
desc = "Next Diagnostic";
|
||||||
|
};
|
||||||
|
"<leader>k" = {
|
||||||
|
action = "goto_prev";
|
||||||
|
desc = "Previous Diagnostic";
|
||||||
|
};
|
||||||
|
"<leader>K" = {
|
||||||
|
action = "open_float";
|
||||||
|
desc = "Line Diagnostics";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
lspBuf = {
|
lspBuf = {
|
||||||
K = "hover";
|
gd = {
|
||||||
gD = "references";
|
action = "definition";
|
||||||
gd = "definition";
|
desc = "Goto Definition";
|
||||||
gi = "implementation";
|
};
|
||||||
gt = "type_definition";
|
gr = {
|
||||||
|
action = "references";
|
||||||
|
desc = "Goto References";
|
||||||
|
};
|
||||||
|
gD = {
|
||||||
|
action = "declaration";
|
||||||
|
desc = "Goto Declaration";
|
||||||
|
};
|
||||||
|
gI = {
|
||||||
|
action = "implementation";
|
||||||
|
desc = "Goto Implementation";
|
||||||
|
};
|
||||||
|
gT = {
|
||||||
|
action = "type_definition";
|
||||||
|
desc = "Type Definition";
|
||||||
|
};
|
||||||
|
K = {
|
||||||
|
action = "hover";
|
||||||
|
desc = "Hover";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
servers = {
|
servers = {
|
||||||
|
@ -188,6 +224,7 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
lsp-format.enable = true;
|
lsp-format.enable = true;
|
||||||
|
lsp-lines.enable = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue