diff options
author | Von Random <von@mechanus.net> | 2023-09-26 09:31:22 +0300 |
---|---|---|
committer | Von Random <von@mechanus.net> | 2023-09-26 09:31:22 +0300 |
commit | bfded8cd9f46be557d17980eae1b722b2a57b7a7 (patch) | |
tree | 7fd4841e289e11608905882bcf3ec0b91399b880 | |
parent | 87c7aa23fe8c40753e0c62e92e86ad9cb0552f01 (diff) |
nvim: refactor bootstrap
-rw-r--r-- | cli/.config/nvim/lua/plugins.lua | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/cli/.config/nvim/lua/plugins.lua b/cli/.config/nvim/lua/plugins.lua index 27090b6..06b038d 100644 --- a/cli/.config/nvim/lua/plugins.lua +++ b/cli/.config/nvim/lua/plugins.lua @@ -1,12 +1,8 @@ -- [[ plugins bootstrap ]] local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim" -if not vim.loop.fs_stat(lazypath) then - vim.fn.system { - "git", "clone", "--filter=blob:none", - "https://github.com/folke/lazy.nvim.git", - "--branch=stable", lazypath - } -end +local lazyurl = "https://github.com/folke/lazy.nvim.git" +local lazycmd = { "git", "clone", "--filter=blob:none", "--branch=stable", lazyurl, lazypath } +if not vim.loop.fs_stat(lazypath) then vim.fn.system(lazycmd) end vim.opt.rtp:prepend(lazypath) --[[ plugins list ]] |