Added more lsp keybindings
This commit is contained in:
parent
f365ea7564
commit
8531576b94
|
@ -15,8 +15,28 @@
|
|||
action = "<cmd>LspRestart<CR>";
|
||||
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 = {
|
||||
# python
|
||||
ruff.enable = true;
|
||||
|
|
Loading…
Reference in a new issue