mirror of
https://forge.katzen.cafe/schrottkatze/nix-configs.git
synced 2024-11-25 22:38:44 +01:00
rust-analyzer fixed
This commit is contained in:
parent
134746d36c
commit
c8fb11a104
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue