Replies: 7 comments 12 replies
-
I still have that same problem too FWIW. I still haven’t found any way to get it to stop complaining. I’ve even verified that all the transformations for which the library are required work just fine. So it seems to be used. But the health check keeps complaining. It’s not there. |
Beta Was this translation helpful? Give feedback.
-
@JohnWilliston Try the following minimal config:
local root = vim.fn.fnamemodify("./.repro", ":p")
-- set stdpaths to use .repro
for _, name in ipairs({ "config", "data", "state", "cache" }) do
vim.env[("XDG_%s_HOME"):format(name:upper())] = root .. "/" .. name
end
-- bootstrap lazy
local lazypath = root .. "/plugins/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
vim.fn.system({
"git",
"clone",
"--filter=blob:none",
"--single-branch",
"https://github.com/folke/lazy.nvim.git",
lazypath,
})
end
vim.opt.runtimepath:prepend(lazypath)
local luasnip_config = {
"xudyang1/LuaSnip", -- "L3MON4D3/LuaSnip",
branch = "fix/makefile-SHELL", -- wait to be merged
lazy = false,
dependencies = { "rafamadriz/friendly-snippets" },
build = "make install_jsregexp", -- optional
config = function()
local luasnip = require("luasnip")
luasnip.config.setup()
require("luasnip.loaders.from_vscode").lazy_load({
paths = { vim.fn.stdpath("data") .. "/lazy/friendly-snippets" },
})
end,
}
local plugins = { luasnip_config }
require("lazy").setup(plugins, {
root = root .. "/plugins",
})
|
Beta Was this translation helpful? Give feedback.
-
I am not sure if #1343 would fix your issue. The |
Beta Was this translation helpful? Give feedback.
-
@ouch67 @JohnWilliston Does the new fix #1346 work? local root = vim.fn.fnamemodify("./.repro", ":p")
-- set stdpaths to use .repro
for _, name in ipairs({ "config", "data", "state", "cache" }) do
vim.env[("XDG_%s_HOME"):format(name:upper())] = root .. "/" .. name
end
-- bootstrap lazy
local lazypath = root .. "/plugins/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
vim.fn.system({
"git",
"clone",
"--filter=blob:none",
"--single-branch",
"https://github.com/folke/lazy.nvim.git",
lazypath,
})
end
vim.opt.runtimepath:prepend(lazypath)
local luasnip_config = {
"xudyang1/LuaSnip", -- "L3MON4D3/LuaSnip",
branch = "fix/win-shell", -- wait to be merged
lazy = false,
dependencies = { "rafamadriz/friendly-snippets" },
build = "make install_jsregexp", -- optional
config = function()
local luasnip = require("luasnip")
luasnip.config.setup()
require("luasnip.loaders.from_vscode").lazy_load({
paths = { vim.fn.stdpath("data") .. "/lazy/friendly-snippets" },
})
end,
}
local plugins = { luasnip_config }
require("lazy").setup(plugins, {
root = root .. "/plugins",
}) |
Beta Was this translation helpful? Give feedback.
-
ok, so I finally had a chance to try out the minimal init.lua. So the only thing I had to change in it is: I'm using Mingw64 which strangely does not include an executable called "make". And I get the exact same results. I have to make the quote changes above which are: and then it compiles fine but checkhealth still complains that it cannot find jsregexp. and John you need install a c/c++ compiler. I would recommend microsoft's but if you don't like the licensing on it you can give mingw64 a go. That version of make is over 2 years old. I'm not sure it could even read a modern makefile. But it wouldn't be able to do anything with it anyway because you don't have a compiler installed. |
Beta Was this translation helpful? Give feedback.
-
You need to add your mingw64 \bin directory to your PATH environment variable. And if you have done that already then mingw64 doesn't include a "make" executable. You need to change any mention of "make" in your config files to use mingw32-make particularly init.lua. You could alternatively just make a copy of mingw32-make and rename it to make. But that would make it conflict with your MSVS install if you have added that to your path or decide to later. |
Beta Was this translation helpful? Give feedback.
-
@ouch67 , what was reported from |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
#1220 @ouch67
Beta Was this translation helpful? Give feedback.
All reactions