Commit graph

44 commits

Author SHA1 Message Date
WindSoilder
8ec9a50965
fix: add -f to mv to avoid errors when updating 2023-04-26 18:22:53 -04:00
Carlo Cabrera
6f5a4f6306 feat: use -bundle to build parsers on macOS
This will make the parsers align more closely to the ones bundled with
Neovim, because CMake uses the `-bundle` flag (instead of `-shared`) on
macOS when a library is compiled as a `MODULE`.

See, for example:

    10baf89712/cmake.deps/cmake/TreesitterParserCMakeLists.txt (L6-L9)
2023-04-03 03:38:54 -04:00
Adam Wolski
273d5e9ac5 fix(windows): treat any non-cmd shell as powershell like in selector 2023-03-16 04:23:14 -04:00
Adam Wolski
677dd11c6a fix(windows): fix invalid powershell separator during install 2023-03-16 04:23:14 -04:00
Amaan Qureshi
0e266bfc29 docs: add missing fields from InstallInfo, update code docs related to installation 2023-03-11 17:05:55 -05:00
Amaan Qureshi
853b1ab39a style: fill in missing code docs wherever applicable 2023-02-24 01:08:23 -08:00
Stephan Seitz
3e316204f8 ci: fix file name for cache calculation 2023-01-08 00:33:13 +01:00
Stephan Seitz
86345612b7 install: allow pure C parsers to be compiled without -lstdc++
E.g. installing C [here](https://github.com/nvim-treesitter/nvim-treesitter/issues/4056)
does not require libstdc++.

Co-authored-by: ObserverOfTime <chronobserver@disroot.org>
2023-01-08 00:33:13 +01:00
Attila Tajti
8b5080b1bf shell: respect shellslash option on Windows
Always use backlashes as path separators
in commands when they are used in cmd.exe.

Fixes #2844 #1965
2022-12-14 17:27:16 +01:00
Lewis Russell
0948bf2274 feat(emmy): add emmylua annotations 2022-10-31 12:00:45 +01:00
Duncan McDougall
901ffe1a36
Add support for custom parser install locations #2959 (#3031) 2022-06-20 22:50:07 +02:00
Emilia Simmons
76d1042b31 Format with stylua 2022-04-15 22:00:23 +02:00
Emilia Simmons
56083dd56f fix: properly select name in revision archive 2022-04-15 22:00:23 +02:00
Stephan Seitz
3aac7f9db9 fix: prefer gmake over make 2022-03-08 21:49:18 +01:00
Stephan Seitz
b8129fac90 Revert "2612: Use gmake when available"
This reverts commit d3d1637c3c.
2022-03-08 21:32:11 +01:00
Sebastián Zaffarano
d3d1637c3c 2612: Use gmake when available 2022-03-08 20:43:20 +01:00
Stephan Seitz
5639b74db0 chore(makefile): apply fixes to original makefile 2022-02-08 23:37:59 +01:00
Stephan Seitz
81f2a5d702 fix(makefile): fallback to c++14 when parser does not have cxx_standard set 2022-02-08 23:37:59 +01:00
Stephan Seitz
bb33aea03c Set CXX standard per parser and fix Norg 2022-01-23 16:27:25 +01:00
Stephan Seitz
a37c97545f Allow compilation via makefile 2022-01-23 16:27:25 +01:00
maxxnino
e3e43c479e Add zig as compiler for parser 2021-10-21 22:10:55 +02:00
Stephan Seitz
2a073f760c feat(install): add options prefer_git and command_extra_args
Fixes #1888
2021-10-01 22:21:16 +02:00
Eduardo Cuducos
a76dbe7335 Replaces curl argument: --no-progress-meter -> --silent
Fix #1748
2021-08-25 09:24:08 +02:00
Thomas Vigouroux
ac9f7a2d5a fix(dowload): don't display curl progress
Fixes #1731
2021-08-24 17:41:01 +02:00
Laurence Tratt
37a220526d "-z" needs to come before "-f". 2021-07-19 21:51:33 +02:00
Laurence Tratt
968ce80c99 Add -z switch to tar.
Some versions of tar automatically infer `-z` if a `.gz` (or other compressed
extension) file is passed -- but some, including OpenBSD's, don't do this and
require an explicit `-z`. As far as I know, any version of tar which
automatically unzips files supports `-z` so this should be a backwards
compatible change for most versions of tar.
2021-07-19 21:51:33 +02:00
Santos Gallegos
be8f656087
Use stylua for autoformat code (#1480) 2021-07-04 21:12:17 +00:00
Daniel Bendel
9fb2b0c0b6 remove developer mode error message 2021-04-15 16:56:49 +02:00
Daniel Bendel
6484c5c880 split is_github_or_gitlab again 2021-04-15 16:56:49 +02:00
Daniel Bendel
06af7daf18 remove single-branch and branch arguments on git call 2021-04-15 16:56:49 +02:00
Daniel Bendel
5ff8535bb4 fix undefined variable 2021-04-15 16:56:49 +02:00
Daniel Bendel
50aa988327 a little less variables :) 2021-04-15 16:56:49 +02:00
Daniel Bendel
a866b808c6 removed core.symlinks=true from git call 2021-04-15 16:56:49 +02:00
AdnoC
e65049bd37 use utils.join_path 2021-04-15 16:56:49 +02:00
AdnoC
4d2813f03b use locked revision when downloading via git 2021-04-15 16:56:49 +02:00
AdnoC
234557b95e fix windows check 2021-04-15 16:56:49 +02:00
AdnoC
ef546ef7c8 style 2021-04-15 16:56:49 +02:00
AdnoC
add6eaf181 Do not use builtin tar on Windows
Several parsers (typescript and ocaml specifically) contain symlinks in
their repo. The tar built into Windows cannot handle them.

So, on Windows just use git to download parsers.
2021-04-15 16:56:49 +02: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
Stephan Seitz
06660a73a7 Fix: Allow repo.url to end in ".git" 2021-03-02 12:46:43 -05:00
Stephan Seitz
1df50b3435 Fix #972: Add tar-download support for Gitlab 2021-03-02 16:55:18 +01:00
kiyan
9d57216c0d chore: remove useless code and indent files 2021-02-27 13:36:33 +01:00
Stephan Seitz
6142223557 Add fix for vim.fn.executable(vim.NIL)
This might be a hard error in future:
https://github.com/neovim/neovim/issues/13485
7bb4e74c38
2020-12-12 15:25:27 +01: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