diff --git a/README.md b/README.md index 072b3e2..aa9cba8 100644 --- a/README.md +++ b/README.md @@ -29,8 +29,9 @@ The following are optional but provides additional features: - gcc and g++ - npm - python3 with venv -- java runtime +- java JDK - shellcheck +- jsregexp 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. ### 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 are installed automatically to the nvim data directory (`:echo stdpath('data') .. '/mason'`). The following are some noted requirements for the installations themselves: diff --git a/lua/plugins/init.lua b/lua/plugins/init.lua index 7be05c7..05cd9f9 100644 --- a/lua/plugins/init.lua +++ b/lua/plugins/init.lua @@ -35,7 +35,11 @@ local plugins = { "L3MON4D3/LuaSnip", config = function () require("plugins.config.luasnip") end, -- 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.*", }, {