Santos Gallegos
55860a76d9
Use wrapper around vim.notify with common options
...
Ref https://github.com/nvim-treesitter/nvim-treesitter/pull/1927#issuecomment-947064843
2021-10-22 23:46:16 +02:00
maxxnino
e3e43c479e
Add zig as compiler for parser
2021-10-21 22:10:55 +02:00
Santos Gallegos
04db2e8295
Use vim.notify instead of print in some places ( #1927 )
2021-10-19 12:01:20 -05:00
Stephan Seitz
2a073f760c
feat(install): add options prefer_git and command_extra_args
...
Fixes #1888
2021-10-01 22:21:16 +02:00
Santos Gallegos
70b43fbe21
CI: fix update lockfile job
...
Ref https://github.com/nvim-treesitter/nvim-treesitter/pull/1661#issuecomment-894722369
2021-08-08 14:50:36 +02:00
Munif Tanjim
6ed86a8516
feat: allow 'revision' override in parser config ( #1661 )
2021-08-07 18:23:11 -05:00
Santos Gallegos
be8f656087
Use stylua for autoformat code ( #1480 )
2021-07-04 21:12:17 +00:00
Shane Hird
5f60666d97
Fixed linting issues
2021-07-04 14:59:13 +02:00
Shane Hird
7dccbbad6c
Reduce diffs from master
2021-07-04 14:59:13 +02:00
Shane Hird
a8d64922fa
Re-introduce prompting for installation
2021-07-04 14:59:13 +02:00
Shane Hird
303121e0ec
Improved passing bang to functions
2021-07-04 14:59:13 +02:00
Shane Hird
76ea2b8871
TSUpdate does not install if up to date
2021-07-04 14:59:13 +02:00
Shane Hird
b46580fb66
Use bang for TSInstall commands
2021-07-04 14:59:13 +02:00
Stephan Seitz
871d6d9f92
fix: return when no node found during installation
...
Ref: https://github.com/nvim-treesitter/nvim-treesitter/issues/1324#issuecomment-853418596
2021-06-03 14:24:25 +02:00
Stephan Seitz
66f75c58d9
chore: show errors output during async installation
2021-06-01 21:38:17 +02:00
Daniel Kempkens
ba45e0d3ed
CI: Improved parser installation logic
2021-05-18 19:10:06 +02:00
Stephan Seitz
b9470e30b9
Remove requires_generate_from_grammar for ledger
2021-04-01 21:10:47 +02:00
Stephan Seitz
c16a6c972b
Check for node-js on :TSInstallFromGrammar
...
Ref: https://github.com/nvim-treesitter/nvim-treesitter/issues/1121#issuecomment-811755767
2021-04-01 21:10:47 +02:00
Stephan Seitz
7b1d557c80
Use fullpath to tree-sitter executable to avoid using one from NPM
2021-03-30 22:27:50 +02:00
Stephan Seitz
88ac3d2365
Address #1067 : check whether lockfile exists
2021-03-24 22:32:21 +01:00
Steven Sojka
7984975a2f
feat(install): allow ignore list when installing parsers ( #1098 )
2021-03-24 09:12:03 -05:00
kiyan
2f81d4ad27
hotfix npm check
2021-03-16 18:58:36 +01:00
Stephan Seitz
f392f13af4
Add an error message if NPM is not available but needed
2021-03-16 18:52:43 +01:00
Stephan Seitz
7a7a56d0f1
Add explanation why some parsers need to be generated from source now
2021-03-16 18:52:43 +01:00
Stephan Seitz
4af5fef1d9
Fixup CI
2021-03-16 18:52:43 +01:00
Stephan Seitz
c573cdd0a9
Add CI hack
2021-03-16 18:52:43 +01:00
Stephan Seitz
532a369b32
Mark parsers with NPM dependency
2021-03-16 18:52:43 +01:00
Stephan Seitz
fcb6d74b6b
Make parsers that require "TSGenerateFromGrammar"
2021-03-16 18:52:43 +01:00
Jozef Grajciar
c7422dd257
Add Windows support for cl.exe
...
Co-authored-by: Stephan Seitz <stephan.seitz@fau.de>
2021-03-04 19:58:58 +01:00
kiyan
9d57216c0d
chore: remove useless code and indent files
2021-02-27 13:36:33 +01:00
Github Actions
d8f75f0b09
[docgen] Update README.md
...
skip-checks: true
2020-12-12 19:04:43 +01:00
Stephan Seitz
bdabf38a59
Fix: Print message when TSUpdate has nothing to do
2020-11-29 16:37:09 +01:00
Stephan Seitz
25bf605940
Only update outdated_parsers on TSUpdate
2020-11-25 08:04:54 +01:00
Stephan Seitz
9327b113c2
feat(install): Enable installation of parser with repo.url as a local path
2020-10-31 23:13:04 +01:00
BodneyC
333e1ab776
fix( #620 ): Fall into the "update-all" branch if lang is "all"
2020-10-28 10:24:58 +01:00
Stephan Seitz
c3b526fe51
feat(install): add "maintained" option to only install maintained parsers
...
Unmaintained parsers only give users little benefit but take sometimes a
a long time to install (e.g. Markdown, Julia, Haskell parser). We could
recommend to only install maintained parsers by default.
2020-10-26 12:42:10 +01:00
kyazdani42
04ff77442a
show [treesitter] during install
2020-10-24 15:11:01 +02:00
Suhas Hebbar
f5ac2b4a1a
Shorten module reference shell_command_selectors to shell.
2020-10-06 19:08:42 +02:00
Suhas Hebbar
46ce4adca8
Code Refactor
...
- Move select_* function to shell_command_selectors.lua.
- Rename select_args to select_compiler_args.
2020-10-06 19:08:42 +02:00
Suhas Hebbar
40edefc476
Remove dependency on unzip.
...
Use tar instead which should be available on default Unixes and Windows
2020-10-06 19:08:42 +02:00
Stephan Seitz
9f5237b6c5
Fix: fallback git-installation (list of commands is expected)
2020-10-04 21:48:25 +02:00
Stephan Seitz
b66b533ecd
chore: dedup join_paths <-> join_path
2020-09-28 17:40:34 +02:00
Stephan Seitz
18fca90457
Add progress info to iter_cmd
2020-09-27 13:09:12 +02:00
Stephan Seitz
0a51d492a5
Add lockfile and make lockfile default install revision
2020-09-27 13:09:12 +02:00
Stephan Seitz
0643fa3003
feat(parsers): add possibility to install from other branches
...
More and more Github repos are switching to "main" branch.
Example: `tree-sitter-wasm`
2020-09-22 21:27:24 +02:00
Stephan Seitz
e31cbdc13d
feat(install): make compiler selectable
...
Compilers are selectable via 'nvim-treesitter.install'.compilers (list of compilers) or environment variable CC
Addresses #502
2020-09-19 20:05:22 +02:00
Stephan Seitz
8c4bc2803c
fix: only concatenate cmd.err if not nil
2020-09-19 10:45:52 -05:00
Pau Ruiz Safont
2efeb80a44
feat(install): print more information when there's a failure
2020-09-19 13:35:12 +02:00
Rasmus Michelsen
2624c00b37
Ensure that updated files are replaced w/o warning
2020-09-18 22:35:45 +02:00
Florian Beeres
18adc9e176
Make :TSInstall work in Nix by adding a second module installation target ( #473 )
...
* Ignore tags file in project root
* Make :TSInstall work with Nix
This commit adds logic to determine where to install parsers, meaning
the *.so files. Until now the package path of the nvim-treesitter plugin
was used. But when installed with Nix, the plugin lands in "/nix/store",
which is read-only.
With this commit $XDG_DATA_HOME/nvim/site/parser/*.go will be used as
the parser installation path. The directory will be created if it
doesn't exist.
* Add generate_join function
The generate_join function is used to create two other functions, one
to join path segments, the other to join strings with a space for error
messages.
2020-09-18 09:44:07 +02:00