diff options
Diffstat (limited to 'home/.config/nvim/init.lua')
-rw-r--r-- | home/.config/nvim/init.lua | 28 |
1 files changed, 24 insertions, 4 deletions
diff --git a/home/.config/nvim/init.lua b/home/.config/nvim/init.lua index 05f7fa2..a683b33 100644 --- a/home/.config/nvim/init.lua +++ b/home/.config/nvim/init.lua @@ -8,19 +8,39 @@ function P(v) end local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim" -if not vim.loop.fs_stat(lazypath) then - vim.fn.system({ +if not (vim.uv or vim.loop).fs_stat(lazypath) then + local lazyrepo = "https://github.com/folke/lazy.nvim.git" + local out = vim.fn.system({ "git", "clone", "--filter=blob:none", - "https://github.com/folke/lazy.nvim.git", - "--branch=stable", -- latest stable release + "--branch=stable", + lazyrepo, lazypath, }) + if vim.v.shell_error ~= 0 then + vim.api.nvim_echo({ + { "Failed to clone lazy.nvim:\n", "ErrorMsg" }, + { out, "WarningMsg" }, + { "\nPress any key to exit..." }, + }, true, {}) + vim.fn.getchar() + os.exit(1) + end end vim.opt.rtp:prepend(lazypath) + require("lazy").setup({ import = "custom/plugins" }, { defaults = { version = "*", }, + change_detection = { + notify = false, + }, + rocks = { + enabled = false, + hererocks = false, + }, }) + +vim.lsp.enable("just") |