-
Notifications
You must be signed in to change notification settings - Fork 1
/
init.lua
54 lines (46 loc) · 1.45 KB
/
init.lua
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
54
--
-- I8 ,dPYb,
-- I8 IP'`Yb
-- gg gg 88888888 I8 8I
-- "" "" I8 I8 8'
-- gg ,ggg,,ggg, gg I8 I8 dP gg gg ,gggg,gg
-- 88 ,8" "8P" "8, 88 I8 I8dP I8 8I dP" "Y8I
-- 88 I8 8I 8I 88 ,I8, I8P I8, ,8I i8' ,8I
-- _,88,_,dP 8I Yb,_,88,_ ,d88b, d8b ,d8b,_ ,d8b, ,d8b,,d8, ,d8b,
-- 8P""Y88P' 8I `Y88P""Y888P""Y88 Y8P 8P'"Y888P'"Y88P"`Y8P"Y8888P"`Y8
if vim.fn.has("nvim-0.10") ~= 1 then
print("Please use Neovim 0.10")
return
end
if vim.fn.expand("$NVIM_INSTALL") == "true" then
vim.g.install = 1
end
require("core.options")
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
vim.fn.system({
"git",
"clone",
"--filter=blob:none",
"https://github.com/folke/lazy.nvim.git",
"--branch=stable", -- latest stable release
lazypath,
})
end
vim.opt.rtp:prepend(lazypath)
vim.g.mapleader = " "
vim.g.maplocalleader = "\\"
require("lazy").setup({
spec = {
{ import = "plugins" },
-- { import = "minimal" },
},
install = { colorscheme = { "catppuccin" } },
change_detection = { notify = false },
})
require("core.mappings")
require("core.autocmd")
require("core.functions")
if vim.g.neovide then
require("neovide")
end