Added more lsp keybindings

This commit is contained in:
Alejandro Angulo 2024-06-03 16:32:54 -07:00
parent f365ea7564
commit 8531576b94
Signed by: alejandro-angulo
GPG key ID: 75579581C74554B6

View file

@ -15,8 +15,28 @@
action = "<cmd>LspRestart<CR>"; action = "<cmd>LspRestart<CR>";
key = "<leader>lr"; key = "<leader>lr";
} }
{
action = "<cmd>split | lua vim.lsp.buf.definition()<CR>";
key = "gs";
}
{
action = "<cmd>vsplit | lua vim.lsp.buf.definition()<CR>";
key = "gv";
}
{
action = "<cmd>tab split | lua vim.lsp.buf.definition()<CR>";
key = "gn";
}
]; ];
keymaps.lspBuf = {
"K" = "hover";
"gD" = "references";
"gd" = "definition";
"gi" = "implementation";
"gt" = "type_definition";
};
servers = { servers = {
# python # python
ruff.enable = true; ruff.enable = true;