nix-community / home-manager

Manage a user environment using Nix [maintainer=@rycee]
https://nix-community.github.io/home-manager/
MIT License
7.05k stars 1.82k forks source link

bug: programs.neovim.coc.enable dosen't load CoC #2386

Closed izik1 closed 2 years ago

izik1 commented 3 years ago

Is there an existing issue for this?

Issue description

Title, elaborating: Attempted to enable CoC for neovim via programs.neovim.coc.enable, but CoC didn't seem to be loading. Turns out it definitely wasn't. Nothing showed up in the sourced files, functions, commands, etc... Adding the plugin (copied almost verbatim from below) directly to my neovim plugins via programs.neovim.plugins did load it though. https://github.com/nix-community/home-manager/blob/d9fe208f3ccd7047a29eb31fd0cd3191c4445323/modules/programs/neovim.nix#L278

Even more confusingly, the settings (programs.neovim.coc.settings) were copied over without issue.

Aside: programs.neovim.coc.enable should probably enable programs.neovim.withNodeJs, since it's required.

Relevant part of my dotfiles

Maintainer CC

@teto (as the last person who touched it)

System information

- system: `"x86_64-linux"`
 - host os: `Linux 5.10.70, NixOS, 21.11 (Porcupine)`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.4pre20211001_4f49615`
 - channels(root): `"nixos-21.11pre320334.82155ff501c"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`
teto commented 3 years ago

dont think I have touched it, as a matter of fact I would have preferred not to support coc in home-manager.

izik1 commented 3 years ago

By "last person who touched it" I mean the neovim package in general. Sorry for the confusion.

stale[bot] commented 2 years ago

Thank you for your contribution! I marked this issue as stale due to inactivity. If this remains inactive for another 7 days, I will close this issue. Please read the relevant sections below before commenting.

If you are the original author of the issue

* If this is resolved, please consider closing it so that the maintainers know not to focus on this. * If this might still be an issue, but you are not interested in promoting its resolution, please consider closing it while encouraging others to take over and reopen an issue if they care enough. * If you know how to solve the issue, please consider submitting a Pull Request that addresses this issue.

If you are not the original author of the issue

* If you are also experiencing this issue, please add details of your situation to help with the debugging process. * If you know how to solve the issue, please consider submitting a Pull Request that addresses this issue.

Memorandum on closing issues

If you have nothing of substance to add, please refrain from commenting and allow the bot close the issue. Also, don't be afraid to manually close an issue, even if it holds valuable information.

Closed issues stay in the system for people to search, read, cross-reference, or even reopen--nothing is lost! Closing obsolete issues is an important way to help maintainers focus their time and effort.

cherryblossom000 commented 2 years ago

This issue still persists.

nix-info -m output:

addict3d commented 2 years ago

I tried to enable neovim.coc and am seeing:

[coc.nvim] "node" is not executable, checkout {node download url}

Fix in nix-community/home-manager#3048