rust-analyzer fixed

This commit is contained in:
Gabriel 2022-09-02 11:22:54 +02:00
parent 134746d36c
commit c8fb11a104

View file

@ -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)