mirror of
https://forge.katzen.cafe/schrottkatze/nix-configs.git
synced 2024-12-22 17:35:50 +01:00
rust-analyzer fixed
This commit is contained in:
parent
134746d36c
commit
c8fb11a104
1 changed files with 6 additions and 1 deletions
|
@ -7,6 +7,9 @@ in with lib; {
|
|||
};
|
||||
config = mkIf cfg.enable {
|
||||
home-manager.users.jade = { pkgs,... } : {
|
||||
home.packages = with pkgs; [
|
||||
rust-analyzer
|
||||
];
|
||||
programs.neovim = {
|
||||
enable = true;
|
||||
viAlias = true;
|
||||
|
@ -50,7 +53,9 @@ in with lib; {
|
|||
# Coc {{{
|
||||
coc = {
|
||||
enable = true;
|
||||
settings = { };
|
||||
settings = {
|
||||
rust-analyzer.server.path = "${pkgs.rust-analyzer.outPath}/bin/rust-analyzer";
|
||||
};
|
||||
pluginConfig = ''
|
||||
nmap <silent> gd <Plug>(coc-definition)
|
||||
nmap <silent> gy <Plug>(coc-type-definition)
|
||||
|
|
Loading…
Reference in a new issue