reformat lsp keymaps

This commit is contained in:
2025-12-01 19:30:32 -06:00
parent 1aac68e353
commit 63ed3d104a
+47 -37
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";
lspBufAction = "references";
desc = "Goto References"; desc = "Goto References";
}; options.silent = true;
gD = { }
action = "declaration"; {
key = "gD";
lspBufAction = "declaration";
desc = "Goto Declaration"; desc = "Goto Declaration";
}; options.silent = true;
gI = { }
action = "implementation"; {
key = "gI";
lspBufAction = "implementation";
desc = "Goto Implementation"; desc = "Goto Implementation";
}; options.silent = true;
gT = { }
action = "type_definition"; {
key = "gT";
lspBufAction = "type_definition";
desc = "Type Definition"; desc = "Type Definition";
}; options.silent = true;
K = { }
action = "hover"; {
key = "K";
lspBufAction = "hover";
desc = "Hover"; desc = "Hover";
}; options.silent = true;
"<leader>cw" = { }
{
key = "<leader>cw";
action = "workspace_symbol"; action = "workspace_symbol";
desc = "Workspace Symbol"; desc = "Workspace Symbol";
}; }
"<leader>r" = { {
key = "<leader>r";
action = "rename"; action = "rename";
desc = "Rename"; }
}; {
}; key = "<leader>cd";
diagnostic = {
"<leader>cd" = {
action = "open_float"; action = "open_float";
desc = "Line Diagnostics"; desc = "Line Diagnostics";
}; }
"]d" = { {
key = "]d";
action = "goto_next"; action = "goto_next";
desc = "Next Diagnostic"; desc = "Next Diagnostic";
}; }
"[d" = { {
key = "[d";
action = "goto_prev"; action = "goto_prev";
desc = "Previous Diagnostic"; desc = "Previous Diagnostic";
}; }
}; ];
};
}; };
cmp = { cmp = {