Commit graph

5918 commits

Author SHA1 Message Date
Christian Clason
15e2de7ac2 feat(install)!: add explicit path field to parser info (#6476)
Problem: Using `url` for both remote repo and local path complicates the
code.

Solution: Add `path` field that overrides `url` and bypasses
git-specific manipulations, i.e., the contents of the `path` are used
as-is (no git repo needed).

This means `:TSUpdate` will skip such parsers; use `:TSInstall!` instead
after making local changes.

---------

Co-authored-by: Lewis Russell <lewis6991@gmail.com>
2025-03-05 10:00:39 +01:00
Lewis Russell
2a81ef32b8 fix: do not use vim.iter (#6469) 2025-03-05 10:00:39 +01:00
Lewis Russell
c6e3a2565a feat: improve logging of failed installs 2025-03-05 10:00:39 +01:00
Christian Clason
aef6903ac1 feat(install)!: remove support for C++ scanners 2025-03-05 10:00:39 +01:00
Phạm Huy Hoàng
21fc53a639 doc: better clarification of highlights/injections 2025-03-05 10:00:39 +01:00
Phạm Huy Hoàng
c31ecbbad1 fix(format): update scripts to support nightly (#6126)
No need for assert as the use is contained within the script only
2025-03-05 10:00:39 +01:00
Gregory Anders
19d56ada5d fix: update add_predicate and add_directive calls for upstream (#6106)
Update custom predicates and directives to handle multiple nodes per
capture ID per changes upstream.
2025-03-05 10:00:39 +01:00
Christian Clason
a31b76830c fix: better output for update-lockfile 2025-03-05 10:00:39 +01:00
Christian Clason
ac78a8efba feat: improve check-queries 2025-03-05 10:00:39 +01:00
Christian Clason
397a841885 docs: update CONTRIBUTING.md 2025-03-05 10:00:39 +01:00
Lewis Russell
0e89ca6393 refactor: pull out predicate function 2025-03-05 10:00:39 +01:00
Lewis Russell
0607e90079 fix: update vim.system types 2025-03-05 10:00:39 +01:00
Lewis Russell
7af06a6690 fix: remove downcase! directive use 2025-03-05 10:00:39 +01:00
Lewis Russell
5977fa4a7e feat: allow a custom revision in install_info 2025-03-05 10:00:39 +01:00
Pham Huy Hoang
30d171ca36 fix!: indents now rely on treesitter highlight
- Apply suggestions from Lewis to only parse visible lines
- Fix failed tests
2025-03-05 10:00:39 +01:00
Christian Clason
b3234a693f docs(readme): document 'location' key 2025-03-05 10:00:39 +01:00
Pham Huy Hoang
a044640716 tests: remove set ft 2025-03-05 10:00:39 +01:00
Lewis Russell
083ff09ce5 fix: cleanup diagnostics 2025-03-05 10:00:39 +01:00
Lewis Russell
61105e3d13 fix: add stricter cc options (#5063) 2025-03-05 10:00:39 +01:00
Christian Clason
2db0d347fb fix: remove upstreamed directives
`#inject-lang!` and `#trim!`; fix `set-lang-from-mimetype`
2025-03-05 10:00:39 +01:00
TheLeoP
cc19eceb1b fix: always normalize paths
Not doing this results in paths with a mix of '\\' and '/' for Windows.
This isn't a problem when dealing with Neovim/luv APIs, but it is a
problem when comparing strings.
2025-03-05 10:00:39 +01:00
TheLeoP
6c039b8ae2 fix: check if config has install_info in filter 2025-03-05 10:00:39 +01:00
Lewis Russell
18c1e34aeb fix: check queries in needs_update() 2025-03-05 10:00:39 +01:00
Lewis Russell
2235af37c8 fix: filter languages through parser.configs 2025-03-05 10:00:39 +01:00
Christian Clason
335b62e540 feat: add parser tiers
Tier 1: Stable
Tier 2: Core (maintained by org members)
Tier 3: Community (maintained by external contributors, to varying
degree)
Tier 4: Unsupported (lacking active maintainer or declared
experimental); skipped in lockfile update and ignored for automatic
install by default
2025-03-05 10:00:39 +01:00
Christian Clason
fe66ace996 feat!: drop makefile support, norg parser
Norg install_info and queries are maintained by neorg.

All other parsers are compatible with C++11, so fix that as standard.
(Can be bumped if all supported platforms support C++14.)

Remove Makefile support, as it's no longer needed.
2025-03-05 10:00:39 +01:00
Lewis Russell
fcc9a8d110 refactor: use vim.system (#4923) 2025-03-05 10:00:39 +01:00
Christian Clason
b912c0d051 fix: expand tiers in ignore_install 2025-03-05 10:00:39 +01:00
Christian Clason
37ae595d20 feat: drop TSInstallInfo in favor of better checkhealth
also fixes the hole in install.compilers
2025-03-05 10:00:39 +01:00
Christian Clason
ee1e991ae2 refactor: use vim.uv 2025-03-05 10:00:39 +01:00
Christian Clason
70910f335f fix: install dependencies 2025-03-05 10:00:38 +01:00
Christian Clason
6bd77a0870 ci: remove update-lockfile shell script 2025-03-05 10:00:38 +01:00
Lewis Russell
c9074b7e5f refactor: rewrite installation using jobs and async
Replace sync variants with callback support
2025-03-05 10:00:38 +01:00
Christian Clason
b4df3c3246 refactor: use vim.fs.joinpath 2025-03-05 10:00:38 +01:00
Christian Clason
ddee5b6771 feat!: drop luarocks release 2025-03-05 10:00:38 +01:00
Christian Clason
e97cf1c5e6 feat(locals)!: refactor locals.lua into standalone
Co-authored-by: TheLeoP <eugenio2305@hotmail.com>
2025-03-05 10:00:38 +01:00
Christian Clason
20c077f374 feat!: drop modules, general refactor and cleanup 2025-03-05 10:00:38 +01:00
ObserverOfTime
7508765d7a feat(c-family): inherit injections 2025-03-05 10:00:38 +01:00
Marc Jakobi
06cb88ab31 injections(nix): add nixosTest.testScript + home-manager nvim config
(+ add Check to mkDerivation bash matches)

(+ add Check to mkDerivation bash matches)
2025-03-05 10:00:38 +01:00
ObserverOfTime
3faf6f0842 feat(yuck): add missing injections
And builtin variable highlights
2025-03-05 10:00:38 +01:00
nvim-treesitter-bot[bot]
55c5c762fe bot(lockfile): update dtd, mlir, slim, xml 2025-03-05 06:53:31 +00:00
Riley Bruins
2b0760dca2 feat(jsx): commentstring query 2025-03-04 09:49:57 +01:00
nvim-treesitter-bot[bot]
a5a2845a86 bot(lockfile): update cmake, elixir, ocaml, ocaml_interface, powershell, requirements, superhtml, ziggy, ziggy_schema 2025-03-04 08:36:41 +00:00
Christian Clason
c641ca8e05 ci(update): block rescript (ABI 15) 2025-03-04 09:25:23 +01:00
Riley Bruins
1adcd57119 feat(markdown): fold sublists 2025-03-03 09:44:46 +01:00
nvim-treesitter-bot[bot]
bf6028e00c bot(lockfile): update cmake, elixir, fortran, fsharp, rust, vhdl 2025-03-03 06:58:07 +00:00
nvim-treesitter-bot[bot]
186f35e168 bot(lockfile): update cmake, jinja, jinja_inline, nu 2025-03-02 10:30:19 +00:00
Christian Clason
8bf733ccce ci(update): block templ (ABI 15) 2025-03-02 11:16:59 +01:00
nvim-treesitter-bot[bot]
c1efc9a905 bot(lockfile): update dart, djot, meson, mlir 2025-03-01 11:05:56 +00:00
Christian Clason
f56d2f6765 ci(update): block typespec (ABI 15) 2025-03-01 11:55:29 +01:00