add refactoring

This commit is contained in:
Kopatz
2024-05-16 22:40:39 +02:00
parent 38bfbe82c6
commit 08683d98e7
6 changed files with 88 additions and 23 deletions

View File

@@ -9,11 +9,50 @@
nixd.enable = true;
};
keymaps.lspBuf = {
"gd" = "definition";
"gD" = "references";
"gt" = "type_definition";
"gi" = "implementation";
"K" = "hover";
gd = {
action = "definition";
desc = "LSP: [G]o to [D]efinition";
};
gD = {
action = "declaration";
desc = "LSP: [G]o to [D]eclaration";
};
gT = {
action = "type_definition";
desc = "Goto type definition";
};
gr = {
action = "references";
desc = "LSP: [G]o to [R]eferences";
};
gI = {
action = "implementation";
desc = "LSP: [G]o to [I]mplementation";
};
"K" = {
action = "hover";
desc = "LSP: Show documentation";
};
"<c-k>" = {
action = "signature_help";
desc = "LSP: Show signature help";
};
"<leader>rn" = {
action = "rename";
desc = "LSP: [R]e[n]ame";
};
"<leader>ca" = {
action = "code_action";
desc = "LSP: [C]ode [A]ction";
};
"<leader>ds" = {
action = "document_symbol";
desc = "LSP: [D]ocument [S]ymbols";
};
"<leader>ws" = {
action = "workspace_symbol";
desc = "LSP [W]orkspace [S]ymbols";
};
};
};
lsp-lines = {