From c8fb11a104e02c56dd1b0e6f1616ade7ac13c3bf Mon Sep 17 00:00:00 2001 From: Gabriel Date: Fri, 2 Sep 2022 11:22:54 +0200 Subject: [PATCH] rust-analyzer fixed --- modules/neovim.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/modules/neovim.nix b/modules/neovim.nix index b27ceac..6aa4ae9 100644 --- a/modules/neovim.nix +++ b/modules/neovim.nix @@ -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 gd (coc-definition) nmap gy (coc-type-definition)