- new neovim config
This commit is contained in:
18
lua/vue.lua
Normal file
18
lua/vue.lua
Normal file
@ -0,0 +1,18 @@
|
||||
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
|
||||
|
||||
|
Reference in New Issue
Block a user