summaryrefslogtreecommitdiff
path: root/dot_config/nvim/init.lua
diff options
context:
space:
mode:
authorChloe Kudryavtsev <code@toast.bunkerlabs.net>2023-04-13 00:39:31 -0400
committerChloe Kudryavtsev <code@toast.bunkerlabs.net>2023-04-13 00:39:31 -0400
commit6273b6d43aedc6b00b82e1081db14c39194da765 (patch)
treec6b1b1e6f9391696001375cb93ecd34449eefe0c /dot_config/nvim/init.lua
parentnvim: add rudimentary treesitter folding support (diff)
nvim: redo the whole thing
reasons tm
Diffstat (limited to 'dot_config/nvim/init.lua')
-rw-r--r--dot_config/nvim/init.lua19
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 = {