23 lines
489 B
Nix
23 lines
489 B
Nix
{
|
|
plugins.lsp = {
|
|
enable = true;
|
|
keymaps = {
|
|
lspBuf = {
|
|
"gd" = "definition";
|
|
"gD" = "references";
|
|
"gt" = "type_definition";
|
|
"gi" = "implementation";
|
|
"K" = "hover";
|
|
"<leader>fm" = "format";
|
|
"<leader>rn" = "rename";
|
|
"<leader>ca" = "code_action";
|
|
};
|
|
};
|
|
onAttach = ''
|
|
if client.server_capabilities.inlayHintProvider then
|
|
vim.lsp.inlay_hint.enable(bufnr, true)
|
|
end
|
|
'';
|
|
};
|
|
}
|