nixos-config/home-manager/stvnliu/nixvim/lsp.nix
Zhongheng Liu 3c9a9d42cf
chore: fix some errors and update lock file
Nixvim: switch to Rustaceanvim
Pkgs: add lazygit
2024-11-01 22:06:20 +02:00

39 lines
943 B
Nix

{config, ...}: {
plugins = {
lsp = {
enable = true;
servers = {
pylsp.enable = true;
bashls.enable = true;
clangd.enable = true;
fsautocomplete.enable = true;
gopls.enable = true;
#nil_ls.enable = true;
nixd = {
enable = true;
extraOptions = {
home-manager = {
expr = ''
(builtins.getFlake "/home/stvnliu/nix-conf/").homeConfigurations."stvnliu@nixos-msi".options'';
};
};
};
ts_ls.enable = true;
};
keymaps.lspBuf = {
"gd" = "definition";
"gD" = "references";
"gt" = "type_definition";
"gi" = "implementation";
"K" = "hover";
};
};
lsp-lines.enable = true;
rustaceanvim = {
enable = true;
# rust-tools.enable = true;
};
};
diagnostics.virtual_lines.only_current_line = true;
}