Commit Graph

36 Commits

Author SHA1 Message Date
Austin Horstman
e979b816a7 neovim-require-check-hook: make requiredLuaModules available during checks 2026-06-03 07:58:58 -05:00
zimbatm
1b47667776 vimPluginsUpdater: use lib.sources.sourceByGlobs
Filter PYTHONPATH source to .py files only, dropping the 6 sibling
.nix files from the closure.
2026-05-26 21:49:00 +12:00
Sigmanificient
0bbc8dffae treewide: set meta.license on hooks 2026-05-25 13:48:20 +02:00
Eman Resu
0737305c9b vimPluginsUpdater: inherit license variables into global scope 2026-05-03 16:17:40 -04:00
Austin Horstman
544cc616d8 vimPluginsUpdater: generate plugin licenses
Fetch GitHub SPDX license metadata during plugin updates and emit meta.license for generated vim plugin derivations.

Fall back to lib.licenses.unfree when no SPDX license is detected, and round-trip existing license metadata through get-plugins.nix so partial updates do not drop it.
2026-04-26 12:27:25 -05:00
Austin Horstman
9f1639ef52 nixpkgs-plugin-update: format updater code 2026-04-26 12:21:08 -05:00
Austin Horstman
c552f3dd37 neovim: handle plugins without pname 2026-04-24 07:43:46 -05:00
Perchun Pak
1a9bbc066f neovim: check for pnames when asserting if two treesitters are installed
Previously it evaluated `nvim-treesitter-legacy` derivation, which now
results in a warning. Checking for pname shouldn't raise this warning,
since now only plugins that are installed get evaluated.
2026-04-21 16:11:53 +02:00
Austin Horstman
d29c1dced1 vimPlugins.nvim-treesitter updater: compare tag-aware refs
Compare the current source ref using src.tag when present and fall back to
src.rev otherwise.

nvim-treesitter can now be represented by either a tag or a commit depending on
how the updater selected its target. Comparing only rev makes the special-case
skip logic treat equivalent tagged sources as mismatches.
2026-04-19 10:04:57 -05:00
Austin Horstman
fe52f190b9 vim/kakoune updaters: preserve src.tag metadata
Keep fetcher tag metadata when reading current plugin state from Nix.

The updater needs to know whether a plugin was fetched by tag or by commit.
Without carrying src.tag through, tagged sources are read back as if rev were
always the canonical source identifier, which breaks tag-aware comparisons and
cache behavior later in the update flow.
2026-04-19 10:04:57 -05:00
Austin Horstman
231170aa16 nixpkgs-plugin-update: use nix-prefetch-github 2026-04-17 10:35:03 -05:00
PerchunPak
9d5ea8a212 vimPluginsUpdater: don't define passthru.updateScript 2026-01-22 20:26:58 +01:00
Austin Horstman
c9e71c3d1a vimPluginsUpdater: fix lint warnings
Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
2026-01-19 13:17:50 -06:00
Austin Horstman
457cb31aea vimPluginsUpdater: fix script
buildNeovimPlugin removed in previous update, but get-plugins is trying
to call package with removed argument.

Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
2026-01-19 10:15:04 -06:00
Heitor Augusto
c9d3c16463 vimPlugins.nvim-treesitter: add parser and query dependencies 2026-01-18 17:01:26 -03:00
Heitor Augusto
46e6cf2e4e wrapNeovim: symlink treesitter grammars in the wrapper (#479049) 2026-01-18 15:58:56 +00:00
PerchunPak
eadca93f21 wrapNeovim: symlink treesitter grammars in the wrapper 2026-01-18 16:38:41 +01:00
Austin Horstman
de37af5086 vimPluginsUpdater: fix missing fetchgit
fetchFromGitea -> fetchgit and remove useless `buildNeovimPlugin` we'll
handle that in overrides.nix

Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
2026-01-16 10:47:44 -06:00
Wolfgang Walther
e876fa488f neovimUtils.grammarToPlugin: add pname and version and derive name from them (#479780) 2026-01-15 10:35:02 +00:00
jopejoe1
575f39e237 neovimUtils.grammarToPlugin: add pname and version and derive name from them
Co-authored-by: Perchun Pak <nixpkgs@perchun.it>
2026-01-15 01:30:50 +01:00
Michael Daniels
d9c920a2d9 vimPluginsUpdater: change 'format = "other"' to 'pyproject = false' 2026-01-13 19:21:38 -05:00
Heitor Augusto
0ae41864ed vimPlugins.nvim-treesitter-legacy: init (#472119) 2026-01-06 14:30:28 +00:00
Heitor Augusto
71f1b82b97 vimPlugins.nvim-treesitter: 0.10.0-unstable-2025-05-24 -> 0.10.0-unstable-2025-12-29 2025-12-29 18:41:59 -03:00
PerchunPak
31d10c15b5 neovim wrapper: throw if two versions of nvim-treesitter are present 2025-12-29 11:31:10 +01:00
Emily
00c40f1069 python313Packages.nixpkgs-plugin-update: init from maintainer script
We have machinery for Python packaging, so let’s make use of
it. This also helps unblock moving `by-name` overrides out of
`all-packages.nix`, as it was previously being used to work around
`nixpkgs-vet` forbidding the direct reference to the path.
2025-10-20 19:32:57 +01:00
Wolfgang Walther
91a8fee3aa treewide: remove redundant parentheses
Auto-fixed by nixf-diagnose.
2025-10-05 10:52:03 +02:00
NAHO
c8d4dabc43 pkgs: remove optional builtins prefixes from prelude functions
Remove optional builtins prefixes from prelude functions by running:

    builtins=(
      abort
      baseNameOf
      break
      derivation
      derivationStrict
      dirOf
      false
      fetchGit
      fetchMercurial
      fetchTarball
      fetchTree
      fromTOML
      import
      isNull
      map
      null
      placeholder
      removeAttrs
      scopedImport
      throw
      toString
      true
    )

    fd \
      --type file \
      . \
      pkgs \
      --exec-batch sed --in-place --regexp-extended "
        s/\<builtins\.($(
          printf '%s\n' "${builtins[@]}" |
            paste --delimiter '|' --serial -
        ))\>/\1/g
      "

    nix fmt
2025-10-04 19:02:37 +02:00
Wolfgang Walther
5a0711127c treewide: run nixfmt 1.0.0 2025-07-24 13:55:40 +02:00
Austin Horstman
6e54938365 vimPlugins.nvim-treesitter: fix update script generated.nix path
When run directly from `update.py` it generates in the wrong location.

Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
2025-07-01 10:44:29 -05:00
PerchunPak
1a47b9efd0 nvim-treesitter grammars updater: avoid silent fails
What if some grammar fails to update? Well, it gets removed from the
generated file. How would we know that the grammar failed? By reading
logs. Who reads logs if the command didn't crash? Right, nobody. Or even
if someone examines the logs, it is too easy to overlook the failure
(are you sure you read every single line of code? It is not even colored)

They are useful only in two cases:

- During debugging, this happens rarely
- Let's print something to keep the user informed that we are doing
  something

  It should not to be a mistake to overlook one line from the logs,
  because when you run the same script hundreds of times (we do updates
  weekly), you barely look at logs; you scan them, at most.

By treating logs this way, we can inform ourselves about possible
breakages before it gets even reviewed by another person, not by a user
opening a bug report months later.

![image](https://github.com/user-attachments/assets/608dad73-626a-4e06-9122-38d2a085d473)
2025-05-18 20:49:46 +02:00
PerchunPak
137a367b17 nvim-treesitter grammars updater: small improvements
Mainly ran `ruff format` on the file and used newer `pathlib.Path`
2025-05-18 20:28:53 +02:00
Austin Horstman
34970867e2 nvim-treesitter/update.py: source from nurr
Upstream no longer updating the sources in the lockfile.json, but they
still update in their main branch's parsers.lua. We don't need to parse
that file since nurr is already doing that for us. We can just grab
latest parser info from their json.
2025-05-18 09:27:44 -05:00
Austin Horstman
09c979e0f0 vimPlugins.nvim-tree-sitter: fix updater formatting 2025-04-14 12:33:55 -05:00
Austin Horstman
96c81c3f8f vimPluginsUpdater: fix format of generated output 2025-04-09 15:47:21 -05:00
Austin Horstman
0195aa79db vimPluginsUpdater: fix nvim-tree-sitter update
Moving the update scripts to the utils directory and pointing back at
the generated location
2025-03-27 08:09:45 -05:00
Austin Horstman
cb00c3ba6c vimUtils: move to utils directory
Add some organization
2025-03-25 08:34:01 -05:00