Skip install jsregexp for windows

This commit is contained in:
2023-09-11 13:38:30 +02:00
parent e0e4256547
commit a8e6106baf
2 changed files with 10 additions and 3 deletions
+5 -2
View File
@@ -29,8 +29,9 @@ The following are optional but provides additional features:
- gcc and g++ - gcc and g++
- npm - npm
- python3 with venv - python3 with venv
- java runtime - java JDK
- shellcheck - shellcheck
- jsregexp
The sections below describes this in more detail. The sections below describes this in more detail.
@@ -38,7 +39,9 @@ The sections below describes this in more detail.
Some parsers require tools for compilation, like `gcc` and/or `g++`. There are far too many parsers for me to list (and keep track of) all their dependencies here, but `gcc` and `g++` should cover a lot of them. You will generally encounter an error that describes if something is missing upon opening specific filetypes, because treesitter is configured to automatically install parsers when needed. Some parsers require tools for compilation, like `gcc` and/or `g++`. There are far too many parsers for me to list (and keep track of) all their dependencies here, but `gcc` and `g++` should cover a lot of them. You will generally encounter an error that describes if something is missing upon opening specific filetypes, because treesitter is configured to automatically install parsers when needed.
### LuaSnip ### LuaSnip
`jsregexp` is required in order to perform some [transformations](https://code.visualstudio.com/docs/editor/userdefinedsnippets#_variable-transforms). See [here](https://github.com/L3MON4D3/LuaSnip/blob/master/DOC.md#transformations) for more information. You don't need to install this yourself, because it will attempt to compile it automatically using `make` and `gcc`. If either `make` or `gcc` is not available you might see an error in the lazy installation of LuaSnip. `jsregexp` is required in order to perform some [transformations](https://code.visualstudio.com/docs/editor/userdefinedsnippets#_variable-transforms). See [here](https://github.com/L3MON4D3/LuaSnip/blob/master/DOC.md#transformations) for more information.
You will need to manually install `jsregexp` on windows, while it's installed automatically on other platforms using `make` and `gcc`.
### Language servers ### Language servers
Language servers are installed automatically to the nvim data directory (`:echo stdpath('data') .. '/mason'`). The following are some noted requirements for the installations themselves: Language servers are installed automatically to the nvim data directory (`:echo stdpath('data') .. '/mason'`). The following are some noted requirements for the installations themselves:
+5 -1
View File
@@ -35,7 +35,11 @@ local plugins = {
"L3MON4D3/LuaSnip", "L3MON4D3/LuaSnip",
config = function () require("plugins.config.luasnip") end, config = function () require("plugins.config.luasnip") end,
-- comment out on windows and install jsregexp manually -- comment out on windows and install jsregexp manually
build = "make install_jsregexp", build = (
require("utils").os_name ~= "Windows_NT"
and "make install_jsregexp"
or nil
),
version = "2.*", version = "2.*",
}, },
{ {