diff --git a/.gitignore b/.gitignore index 4f74535..8600483 100644 --- a/.gitignore +++ b/.gitignore @@ -1,8 +1,7 @@ /* -!/meta/ +!/install.lua !/lua/ !/tests/ -!/tools/ !/History.md !/LICENSE !/README.md diff --git a/install.lua b/install.lua new file mode 100644 index 0000000..f906b62 --- /dev/null +++ b/install.lua @@ -0,0 +1,14 @@ +-- vi: et sw=4 ts=4: +-- hsv2 +local function clone() + local path = vim.fn.stdpath('data') .. '/site/pack/hsv2/opt/hsv2.nvim' + if vim.fn.empty(vim.fn.glob(path)) > 0 then + vim.fn.system { + 'git', + 'clone', + '--depth=1', + 'https://git.disroot.org/soratobuneko/hsv2-neovim', + path + } + end +end