reformat lsp keymaps

This commit is contained in:
2025-12-01 19:30:32 -06:00
parent 1aac68e353
commit 63ed3d104a
+62 -52
View File
@@ -346,58 +346,68 @@
}; };
}; };
keymaps = { keymaps = [
silent = true; {
lspBuf = { key = "gd";
gd = { lspBufAction = "definition";
action = "definition"; desc = "Goto Definition";
desc = "Goto Definition"; options.silent = true;
}; }
gr = { {
action = "references"; key = "gr";
desc = "Goto References"; lspBufAction = "references";
}; desc = "Goto References";
gD = { options.silent = true;
action = "declaration"; }
desc = "Goto Declaration"; {
}; key = "gD";
gI = { lspBufAction = "declaration";
action = "implementation"; desc = "Goto Declaration";
desc = "Goto Implementation"; options.silent = true;
}; }
gT = { {
action = "type_definition"; key = "gI";
desc = "Type Definition"; lspBufAction = "implementation";
}; desc = "Goto Implementation";
K = { options.silent = true;
action = "hover"; }
desc = "Hover"; {
}; key = "gT";
"<leader>cw" = { lspBufAction = "type_definition";
action = "workspace_symbol"; desc = "Type Definition";
desc = "Workspace Symbol"; options.silent = true;
}; }
"<leader>r" = { {
action = "rename"; key = "K";
desc = "Rename"; lspBufAction = "hover";
}; desc = "Hover";
}; options.silent = true;
}
diagnostic = { {
"<leader>cd" = { key = "<leader>cw";
action = "open_float"; action = "workspace_symbol";
desc = "Line Diagnostics"; desc = "Workspace Symbol";
}; }
"]d" = { {
action = "goto_next"; key = "<leader>r";
desc = "Next Diagnostic"; action = "rename";
}; }
"[d" = { {
action = "goto_prev"; key = "<leader>cd";
desc = "Previous Diagnostic"; action = "open_float";
}; desc = "Line Diagnostics";
}; }
}; {
key = "]d";
action = "goto_next";
desc = "Next Diagnostic";
}
{
key = "[d";
action = "goto_prev";
desc = "Previous Diagnostic";
}
];
}; };
cmp = { cmp = {