52 lines
1.1 KiB
Nix
52 lines
1.1 KiB
Nix
|
{
|
||
|
programs.nixvim.plugins.lsp = {
|
||
|
enable = true;
|
||
|
servers = {
|
||
|
lua-ls = {enable = true;};
|
||
|
nixd = {enable = true;};
|
||
|
bashls = {enable = true;};
|
||
|
pyright = {enable = true;};
|
||
|
html = {enable = true;};
|
||
|
yamlls = {enable = true;};
|
||
|
marksman = {enable = true;};
|
||
|
#sqls = {enable = true;};
|
||
|
};
|
||
|
keymaps = {
|
||
|
lspBuf = {
|
||
|
gd = {
|
||
|
action = "definition";
|
||
|
desc = "Goto Definition";
|
||
|
};
|
||
|
gr = {
|
||
|
action = "references";
|
||
|
desc = "Goto References";
|
||
|
};
|
||
|
gD = {
|
||
|
action = "declaration";
|
||
|
desc = "Goto Declaration";
|
||
|
};
|
||
|
gI = {
|
||
|
action = "implementation";
|
||
|
desc = "Goto Implementation";
|
||
|
};
|
||
|
gT = {
|
||
|
action = "type_definition";
|
||
|
desc = "Type Definition";
|
||
|
};
|
||
|
K = {
|
||
|
action = "hover";
|
||
|
desc = "Hover";
|
||
|
};
|
||
|
"<leader>cw" = {
|
||
|
action = "workspace_symbol";
|
||
|
desc = "Workspace Symbol";
|
||
|
};
|
||
|
"<leader>cr" = {
|
||
|
action = "rename";
|
||
|
desc = "Rename";
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
}
|