Commit Graph

12 Commits

Author SHA1 Message Date
Matthieu Coudron
901b21c555 vimPluginsUpdater: init
The nixpkgs documentation mentions how to update out of tree plugins but
one problem is that it requires a nixpkgs clone.
This makes it more convenient.
I've had the need to generate vim plugins and lua overlays for other
projects unrelated to nix and this will make updates easier (aka just
run `nix run nixpkgs#vimPluginsUpdater -- --proc=1` or with the legacy commands:
`nix-shell -p vimPluginsUpdater  --run vim-plugins-updater`.

I added an optional "nixpkgs" argument to command line parser, which is the path
towards a nixpkgs checkout. By default the current folder.

update-luarocks-packages: format with black
2023-10-01 17:30:55 +02:00
Matthieu Coudron
6013fe8f41 vim/update.py: ran through black
for formatting
2023-10-01 16:17:13 +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
351cec5db3 use subcommands in plugin updaters (#223164)
* update.py: introduce subparsers for plugin updaters

This is preliminary work to help create more powerful plugin updaters.
Namely I would like to be able to "just add" plugins without refreshing
the older ones (helpful when github temporarily removes a user from
github due to automated bot detection).

Also concerning the lua updater, we pin some of the dependencies, and I
would like to be able to unpin the package without editing the csv
(coming in later PRs).

* doc/updaters: update command to update editor plugins

including vim, kakoune and lua packages

Co-authored-by: figsoda
2023-04-14 22:02:17 +02:00
figsoda
8ef668d7f4 vimPlugins: only commit nvim-treesitter updates when there are actually updates 2023-01-01 15:48:42 -05:00
figsoda
c95706ac44 vimPlugins: also update nvim-treesitter grammars in the update script 2022-11-04 15:52:00 -04:00
Malo Bourgon
d354014efa Revert "vim/update.py: mark some plugins as neovim ones"
This reverts commit d7bfa0dcc4, which
causes build issues since #178180 was merged.
2022-06-21 18:35:55 -07:00
Matthieu Coudron
d7bfa0dcc4 vim/update.py: mark some plugins as neovim ones
so that they use buildNeovimFrom2Nix

I want to avoid adding a more complex heuristic for now or adding a
column to vim-plugin-names.
2022-05-21 17:05:46 +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
AndersonTorres
b2a83e3c95 vim: update the updaters!
update.py and its companion update-shell.nix need to know where they are, else
they can't find the root default.nix of Nixpkgs. Because of this, I further
added a small piece of documentation about those path-dependent pieces of code.
2022-02-24 20:26:07 -03:00
AndersonTorres
3f19fc37a3 Move misc/vim-plugins to applications/editors/vim/plugins 2022-02-24 20:26:07 -03:00