forked from alpha2phi/neovim-for-beginner
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.lua
More file actions
26 lines (24 loc) · 705 Bytes
/
init.lua
File metadata and controls
26 lines (24 loc) · 705 Bytes
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
local lazypath = vim.fn.stdpath 'data' .. '/lazy/lazy.nvim'
---@diagnostic disable-next-line: undefined-field
if not vim.loop.fs_stat(lazypath) then
print 'lazy plugin manager not found: installing it at path:'
print(lazypath)
vim.fn.system {
'git',
'clone',
'--filter=blob:none',
'https://github.com/folke/lazy.nvim.git',
'--branch=stable', -- latest stable release
lazypath,
}
end
---@diagnostic disable-next-line: undefined-field
vim.opt.rtp:prepend(lazypath)
vim.loader.enable()
if vim.g.vscode then
require 'config.vscode'.setup()
else
require 'settings'.setup()
require 'plugins'.setup()
require 'config'.setup()
end