switched to astronvim;
This commit is contained in:
@@ -1,16 +1,19 @@
|
||||
-- Initialize core settings first
|
||||
require("config.options")
|
||||
require("config.keymaps")
|
||||
-- This file simply bootstraps the installation of Lazy.nvim and then calls other files for execution
|
||||
-- This file doesn't necessarily need to be touched, BE CAUTIOUS editing this file and proceed at your own risk.
|
||||
local lazypath = vim.env.LAZY or vim.fn.stdpath "data" .. "/lazy/lazy.nvim"
|
||||
if not (vim.env.LAZY or (vim.uv or vim.loop).fs_stat(lazypath)) then
|
||||
-- stylua: ignore
|
||||
vim.fn.system({ "git", "clone", "--filter=blob:none", "https://github.com/folke/lazy.nvim.git", "--branch=stable", lazypath })
|
||||
end
|
||||
vim.opt.rtp:prepend(lazypath)
|
||||
|
||||
-- Load plugin manager
|
||||
require("config.lazy")
|
||||
-- validate that lazy is available
|
||||
if not pcall(require, "lazy") then
|
||||
-- stylua: ignore
|
||||
vim.api.nvim_echo({ { ("Unable to load lazy from: %s\n"):format(lazypath), "ErrorMsg" }, { "Press any key to exit...", "MoreMsg" } }, true, {})
|
||||
vim.fn.getchar()
|
||||
vim.cmd.quit()
|
||||
end
|
||||
|
||||
-- Plugin settings
|
||||
require("config.plugins.mason")
|
||||
require("config.plugins.treesitter")
|
||||
require("config.plugins.lsp")
|
||||
require("config.plugins.explorer")
|
||||
require("config.plugins.whichkey")
|
||||
|
||||
-- Configure UI components last
|
||||
require("config.theme")
|
||||
require "lazy_setup"
|
||||
require "polish"
|
||||
|
Reference in New Issue
Block a user