rust-analyzer fixed

This commit is contained in:
Schrottkatze 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 { config = mkIf cfg.enable {
home-manager.users.jade = { pkgs,... } : { home-manager.users.jade = { pkgs,... } : {
home.packages = with pkgs; [
rust-analyzer
];
programs.neovim = { programs.neovim = {
enable = true; enable = true;
viAlias = true; viAlias = true;
@ -50,7 +53,9 @@ in with lib; {
# Coc {{{ # Coc {{{
coc = { coc = {
enable = true; enable = true;
settings = { }; settings = {
rust-analyzer.server.path = "${pkgs.rust-analyzer.outPath}/bin/rust-analyzer";
};
pluginConfig = '' pluginConfig = ''
nmap <silent> gd <Plug>(coc-definition) nmap <silent> gd <Plug>(coc-definition)
nmap <silent> gy <Plug>(coc-type-definition) nmap <silent> gy <Plug>(coc-type-definition)