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
Stephan Seitz
d180dca74d
Yield meaningful error messages in iter_cmd{,_sync} when cmd.err == nil
2020-09-11 18:01:33 +02:00
Markus Koller
fd6d09fd1f
Find package path based on the Lua source file
...
This is more robust compared to the previous method where we walked
up the tree and matched on the directory name, which also required
that the repository was cloned in a directory named `nvim-treesitter`.
2020-09-10 15:11:04 +02:00
Rasmus Michelsen
50de57711b
Fixed table insertion
2020-09-06 13:42:24 +02:00
Rasmus Michelsen
07c0e837ab
Fixed win32 check hopefully
2020-09-06 13:42:24 +02:00
Rasmus Michelsen
d9a7b80c7b
Added changes
2020-09-06 13:42:24 +02:00
Rasmus Michelsen
f0f162d041
A few fixes
2020-09-06 13:42:24 +02:00
Rasmus Michelsen
38d34ad493
Local variable fix
2020-09-06 13:42:24 +02:00
Rasmus Michelsen
4f1a464027
Support TSInstall on Winddows with Clang
2020-09-06 13:42:24 +02:00
Santos Gallegos
7a1f6b1586
Completion: use custom instead of customlist
...
Fixes https://github.com/nvim-treesitter/nvim-treesitter/issues/396
2020-09-05 19:29:46 +02:00
Santos Gallegos
1ba18329c7
Refactor: move completion functions to autoload
2020-09-04 21:20:30 +02:00
Stephan Seitz
ce7efd34c6
Add Windows support (mingw)
2020-08-27 22:20:30 +02:00
Thomas Vigouroux
ba3167a1a4
perf: cache parser file list for performance
2020-08-11 20:21:22 +02:00
Stephan Seitz
0f1dcc396a
feat(install): Export iter_cmd
2020-08-02 22:58:08 +02:00
Stephan Seitz
70939e71c9
Add TSUninstall
2020-08-02 22:58:08 +02:00
Stephan Seitz
a872762d82
Add TSUpdate command to update parsers
2020-08-02 22:58:08 +02:00
Stephan Seitz
26cb05f205
Lint: remove second argument for one-argument function
2020-07-13 20:42:00 +02:00