This commit is contained in:
2026-06-11 00:07:50 +01:00
parent d8f593c9f0
commit 8ec7b3429f
2 changed files with 58 additions and 16 deletions
+57
View File
@@ -393,6 +393,63 @@
silent = true;
};
}
# LSP
{
action = "<cmd>lua vim.lsp.buf.definition()<cr>";
key = "gd";
options = { silent = true; desc = "Go to definition"; };
}
{
action = "<cmd>lua vim.lsp.buf.declaration()<cr>";
key = "gD";
options = { silent = true; desc = "Go to declaration"; };
}
{
action = "<cmd>lua vim.lsp.buf.implementation()<cr>";
key = "gi";
options = { silent = true; desc = "Go to implementation"; };
}
{
action = "<cmd>lua vim.lsp.buf.type_definition()<cr>";
key = "<leader>D";
options = { silent = true; desc = "Go to type definition"; };
}
{
action = "<cmd>Telescope lsp_references<cr>";
key = "gr";
options = { silent = true; desc = "LSP references"; };
}
{
action = "<cmd>lua vim.lsp.buf.hover()<cr>";
key = "K";
options = { silent = true; desc = "Hover docs"; };
}
{
action = "<cmd>lua vim.lsp.buf.signature_help()<cr>";
key = "<C-k>";
mode = ["n" "i"];
options = { silent = true; desc = "Signature help"; };
}
{
action = "<cmd>lua vim.lsp.buf.rename()<cr>";
key = "<leader>rn";
options = { silent = true; desc = "Rename symbol"; };
}
{
action = "<cmd>lua vim.diagnostic.goto_prev()<cr>";
key = "[d";
options = { silent = true; desc = "Previous diagnostic"; };
}
{
action = "<cmd>lua vim.diagnostic.goto_next()<cr>";
key = "]d";
options = { silent = true; desc = "Next diagnostic"; };
}
{
action = "<cmd>lua vim.diagnostic.open_float()<cr>";
key = "<leader>e";
options = { silent = true; desc = "Show diagnostic float"; };
}
];
};
};