-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bug: Unable to configure Vim Plugins #3683
Comments
Update: I installed |
There are few things as horrifying as finding only a single GitHub issue with the exact problem you are facing and no resolution. programs.neovim.plugins = [
{
plugin = pkgs.vimPlugins.nvim-autopairs;
type = "lua";
config =
''
require('nvim-autopairs').setup()
'';
}
]; The issue I faced was the same, the lua module 'nvim-autopairs' could not be found when opening neovim. The After several whole days of battling the issue, convinced that my problem was some kind of caching problem, I attempted to remove neovim from my system entirely, only to find that no amount of config changes could remove it. I had installed it, as part of my system bootstrap, using Whoever is reading this, whenever in the future, I sincerely hope this helps. Good luck on your nix journey. |
sry to hear this. My fork of home-manager installs plugins in the $HOME folder such that this would have worked even with an alternate neovim. It was once merged but we had to roll it back, you just reminded me to merge it again (though there is only so much time in a day :'( ). |
Its all good @teto, it all worked out in the end, I just hope my comment prevents similar pain to others getting started in nix. I've come across a lot of your code in my search and its clear that an immense amount work has gone into this stuff by yourself and an army of others. Thank you so much for your contributions here, I really appreciate them. |
nixpkgs historically wraps neovim (my intent being to limit the amount of wrapping): a good way to debug what neovim executable you are using with |
Are you following the right branch?
Is there an existing issue for this?
Issue description
Hello.
I have a problem setting up Neovim plugins when config is specified. I have searched various sources, issues, comments, reddit threads but not sure what else to do.
For example, this is part of my
neovim
configuration that is managed byhome-manager
:I'm trying to setup plugins to work with their proper configs. And for example, the plugin
alpha-nvim
does not work. In the README.md of alpha-nvim, it states how to enable it using some Vim package managers.If I try similar thing in
./plugins/alpha-nvim.lua
:nothing happens. I have also similar problem with
barbar
.The only resource I found was at the end of Neovim page on NixOS https://nixos.wiki/wiki/Neovim#Note_on_Lua_plugins . It states:
but that solution with
packadd!
does not work when I add it inalpha-nvim.lua
as:Am I doing something wrong here ? I'm not sure what that "Lua modules" with packadd does so any help would be appreciated if you know the solution/workaround.
Thank you
Maintainer CC
@teto @rycee
System information
The text was updated successfully, but these errors were encountered: