Commit Graph

21 Commits

Author SHA1 Message Date
Austin Horstman
1bc093da5c vimPlugins.co-{go,tsserver}: drop packages
`nodePackages` set being removed. These plugins haven't been maintained
and aren't a quick easy port. Just dropping.

Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
2026-02-12 19:52:49 -06:00
Gaetan Lepage
08cae76d75 vimPlugins: remove buildNeovimPlugin arg when importing generated.nix 2026-01-17 14:45:22 +00:00
Matt Sturgeon
8f9fb20255 vimPlugins.corePlugins: move to dedicated overlay file 2025-08-31 18:27:00 +01:00
Austin Horstman
c90c292cef vimPlugins: shadow plugin builders in overrides.nix
We want to prevent plugins being added in `overrides.nix`. Shadow the
helper names to throw if someone tries to add them and use them in the
file.

Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
2025-08-30 17:13:14 -05:00
Matt Sturgeon
72a1116812 vimPlugins: simplify auto-non-generated using lib.pipe 2025-03-25 18:54:42 +00:00
Austin Horstman
db2eef5af6 vimplugins.coc-*: move into cocPlugins
coc is breaking out packages into top-level, but I don't know if we
really need separate folders for each of these. Can just create another
set to merge in.
2025-03-25 08:34:02 -05:00
Austin Horstman
eec836cd7d vimPlugins: automate non-generated plugin calls
Move the non-generated plugins to using a function call that iterates
over the folders in the non-generated directory so we don't need them in
overrides.nix
2025-03-25 08:34:02 -05:00
Austin Horstman
060d42bb41 vimPlugins: move extras to separate files per source
Make it more obvious where certain plugins come from.
2025-03-24 21:41:42 -05:00
Matt Sturgeon
0ca1fc3350 vimPlugins: inherit lua & node packages before overrides
- Move lua & node package inheritance to a dedicated file
- Apply lua & node package inheritance before overrides
2025-03-17 15:40:06 +00:00
PerchunPak
05ae7c6323 vimPlugins.feline-nvim: remove
The upstream was deprecated for two years and then removed. Consider
using Lualine
2025-02-16 10:39:46 +01:00
Austin Horstman
3642cf2b1c vimPlugins: remove unnecessary dependency
We don't need to include darwin frameworks explicitly anymore.
2024-12-20 11:34:21 -06:00
Silvan Mosberger
4f0dadbf38 treewide: format all inactive Nix files
After final improvements to the official formatter implementation,
this commit now performs the first treewide reformat of Nix files using it.
This is part of the implementation of RFC 166.

Only "inactive" files are reformatted, meaning only files that
aren't being touched by any PR with activity in the past 2 months.
This is to avoid conflicts for PRs that might soon be merged.
Later we can do a full treewide reformat to get the rest,
which should not cause as many conflicts.

A CI check has already been running for some time to ensure that new and
already-formatted files are formatted, so the files being reformatted here
should also stay formatted.

This commit was automatically created and can be verified using

    nix-build a08b3a4d19.tar.gz \
      --argstr baseRev b32a094368
    result/bin/apply-formatting $NIXPKGS_PATH
2024-12-10 20:26:33 +01:00
Matthieu Coudron
423788f5b8 buildNeovimPlugin: pass a derivation to luaAttr (#343564)
* buildNeovimPlugin: pass a derivation to luaAttr
and deprecate passing a string.
Passing a string is not a typical/good nixpkgs habit. We want to give more control on
which attribute to wrap, without having to add it to the lua package set
necessarily.

* vimPlugins: update plugin with new syntax
buildNeovimPlugin now accepts derivations instead of the lua package name. This PR reflects the change
2024-09-22 20:01:56 +02:00
Matthieu Coudron
0ab2c96429 vimUtils: buildVimPluginFrom2Nix renamed to buildVimPlugin
the `from2Nix` suffix is a legacy from vim2nix but we dont use that anymore. It makes the name of the function unusual and long.
2023-09-27 19:08:38 +02:00
Matthieu Coudron
8255903b71 neovimUtils.buildNeovimPluginFrom2Nix: rename to buildNeovimPlugin
buildNeovimPluginFrom2Nix was cargo-culted from buildVimPluginFrom2Nix
but this doesn't make sense.
From2Nix referred to a way of building plugins that is not used anymore
so buildVimPluginFrom2Nix could be renamed too.
2023-06-12 16:46:52 +02:00
Matthieu Coudron
fd7fff2151 vimPlugins: cleanup unused inherit 2022-12-26 00:21:08 +01:00
Matthieu Coudron
ce505a3984 vimPlugins: use lua derivation if it exists (#178180)
Neovim plugins are now more often than not written in lua.
One advantage of the lua ecosystem over vim's is the existence of
luarocks and the rockspec format, which allows to specify a package
dependencies formally.
I would like more neovim plugins to have a formal description,
"rockspec" being the current candidate.
This MR allows to use nix lua packages as neovim plugins, so as to enjoy
every benefit that rockspecs bring:
- dependdency discovery
- ability to run test suite
- luarocks versioning
- rockspec metadata

the vim update.py script will check if an attribute with the vim plugin
pname exists in lua51Packages. If it does, it uses
buildNeovimPluginFrom2Nix on it, which modifies the luarocks config to
do an almost flat install (luarocks will install the package in the lua
folder instead of share/5.1/lua etc).
It also calls toVimPlugin on it to get all the vim plugin niceties.

The list of packages that could benefit from this is available at
https://luarocks.org/labels/neovim
but I hope it grows.
2022-06-19 14:18:16 +02:00
Matthieu Coudron
d4894355c1 vim/update.py: distinguish between vim/neovim plugins
I've been working for a long time towards automatic nix dependencies for
neovim plugins (using luarocks rockspecs to discover the said
dependencies).
This is an initial commit to help me complete the missing bits.
buildNeovimPluginFrom2Nix is right now a placeholder which helps me test
in my fork a version that does a flat install of luarocks.

the vim updater will now check for attributes with the same name in the lua package set,
if that's the case the script will generate buildNeovimPluginFrom2Nix.
2022-05-03 00:22:03 +02:00
Matthieu Coudron
9663a29afa buildVimPlugin: add vimCommandCheckHook
Modeled after pythonImportCheckHook, this checks a command can be run once the plugin is installed
2022-04-30 23:54:25 +02:00
Robert Hensing
200175a701 config.allowAliases: Define as option
This simplifies usages and makes the default value consistent.

In a few cases, the default value was interpreted to be `false`,
but this is useless, because virtually nobody will explicitly
set `allowAliases = true;`.
2022-04-01 11:33:10 +02:00
AndersonTorres
3f19fc37a3 Move misc/vim-plugins to applications/editors/vim/plugins 2022-02-24 20:26:07 -03:00