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