forked from nvim-lua/kickstart.nvim
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.lua
More file actions
53 lines (43 loc) · 1.54 KB
/
init.lua
File metadata and controls
53 lines (43 loc) · 1.54 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
45
46
47
48
49
50
51
52
53
vim.uv = vim.uv or vim.loop
require 'phaezer.config'
-- Lazy.nvim setup
-- cSpell: words lazypath
-- DOCS: `:help lazy.nvim.txt` or https://github.com/folke/lazy.nvim for more info
local lazypath = vim.fn.stdpath 'data' .. '/lazy/lazy.nvim'
if not vim.uv.fs_stat(lazypath) then
local out = vim.fn.system {
'git',
'clone',
'--filter=blob:none',
'--branch=stable',
'https://github.com/folke/lazy.nvim.git',
lazypath,
}
if vim.v.shell_error ~= 0 then error('Error cloning lazy.nvim:\n' .. out) end
end
vim.opt.rtp:prepend(lazypath)
local lazy_config = require 'phaezer.config.lazy'
lazy_config.spec = {
{ import = 'phaezer.plugins.themes' },
{ import = 'phaezer.plugins.ai' },
{ import = 'phaezer.plugins.completion' },
{ import = 'phaezer.plugins.editing' },
{ import = 'phaezer.plugins.vcs' },
{ import = 'phaezer.plugins.lsp' },
{ import = 'phaezer.plugins.text' },
{ import = 'phaezer.plugins.integrations' },
{ import = 'phaezer.plugins.highlights' },
{ import = 'phaezer.plugins.tools' },
{ import = 'phaezer.plugins.folding' },
{ import = 'phaezer.plugins.ui' },
{ import = 'phaezer.plugins.navigation' },
{ import = 'phaezer.plugins.langs.ansible' },
{ import = 'phaezer.plugins.langs.go' },
{ import = 'phaezer.plugins.langs.rust' },
}
if vim.env.NVIM_EXPERIMENTAL then
table.insert(lazy_config.spec, { import = 'phaezer.plugins.experimental' })
end
---@diagnostic disable-next-line: different-requires
require('lazy').setup(lazy_config)
vim.cmd('colorscheme ' .. (vim.env.NVIM_THEME or 'tokyonight'))