-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathinit.lua
More file actions
44 lines (42 loc) · 1.21 KB
/
init.lua
File metadata and controls
44 lines (42 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
-- Bootstrap lazy.nvim
-- :h standard-path (~/.local/share/nvim)
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
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", "--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)
-- Setup Lazy package manager:
-- https://lazy.folke.io/configuration
--
-- Configuring plugins:
-- https://lazy.folke.io/spec
--
-- NOTE: to pass `opt` into `config` function for calling `.setup(opts)`:
-- https://github.com/folke/lazy.nvim/discussions/1652#discussioncomment-10049093
--
require("lazy").setup({
-- concurrency = 1, -- https://github.com/folke/lazy.nvim/discussions/747
checker = {
enabled = true,
notify = true
},
spec = {
{ import = "plugins" }
},
})
require("autocommands")
require("mappings")
require("settings")
require("commands")
require("quickfix")
require("highlights")