Files
nvim_dotfiles/lua/vue.lua
2025-06-24 18:12:40 +02:00

19 lines
569 B
Lua

local langtoolpath = vim.fn.stdpath("data") .. "/erikcustom/language-tools"
if not vim.uv.fs_stat(langtoolpath) then
local langtoolrepo = "https://github.com/vuejs/language-tools"
local out = vim.fn.system({ "git", "clone", "--filter=blob:none", "--branch=master", langtoolrepo, langtoolpath })
if vim.v.shell_error ~= 0 then
vim.api.nvim_echo({
{ "Failed to clone language-tools:\n", "ErrorMsg" },
{ out, "WarningMsg" },
{ "\nPress any key to exit..." },
}, true, {})
vim.fn.getchar()
os.exit(1)
end
end