Hi,
I manage my nevoid installation including plugins in home-manager (vim fugitive and the like). It overall works very nicely and I don’t need to use a plugin manager at all for vim.
Now I wonder how I can use GitHub - vim-scripts/oberon2: Syntax file for Oberon-2. in that setup.
Alternatives?
Local checkout of the repo, how can I add it to the vim paths?
Adding it to nix? Didn’t see how this is done for vim plugins tbh.
If you think the plugin would be useful to other people, you can do a PR in nixpkgs, an example:
https://github.com/NixOS/nixpkgs/pull/127898/files
If the plugin is only for you, add it to your configuration. E.g. from my dotfiles:
Notice that src
can be also a local directory, that’s up to you
After that, is just another plugin, install it with home-manager like any other plugin:
programs.neovim.plugins = [ visual-star];
1 Like
teto
July 11, 2021, 12:10pm
3
There is this PR pending to explain how to maintain your vim overlay
https://github.com/NixOS/nixpkgs/pull/126633
1 Like