diff options
Diffstat (limited to 'dot_config/nvim/init.lua')
| -rw-r--r-- | dot_config/nvim/init.lua | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/dot_config/nvim/init.lua b/dot_config/nvim/init.lua index 6cc88c5..4f85a38 100644 --- a/dot_config/nvim/init.lua +++ b/dot_config/nvim/init.lua @@ -1,7 +1,24 @@ vim.g.mapleader = ' ' vim.g.maplocalleader = ',' -require 'plugins' +-- plugins +if vim.fn.executable 'git' == 0 then + require 'noplugins' +else + 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", -- latest stable release + lazypath, + }) + end + vim.opt.rtp:prepend(lazypath) + require 'lazy'.setup("plugins", {}) +end -- options local options = { |
