forked from alpha2phi/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 2
/
init.lua
52 lines (46 loc) · 1.1 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
--@diagnostic disable:undefined-global
vim.cmd([[
set shell=/usr/bin/zsh
]])
vim.api.nvim_set_var("mapleader", " ")
vim.api.nvim_set_var("maplocalleader", ";")
require("utils")
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", lazypath })
vim.fn.system({ "git", "-C", lazypath, "checkout", "tags/stable" }) -- last stable release
end
-- As per lazy's install instructions, but insert hotpots path at the front
vim.opt.runtimepath:prepend(lazypath)
require("lazy").setup({
root = vim.fn.stdpath("data") .. "/lazy",
spec = {
import = "plugins",
},
defaults = { lazy = false, version = "*" },
checker = { enabled = false },
diff = {
cmd = "git",
},
performance = {
cache = {
enabled = true,
},
rtp = {
disabled_plugins = {
},
},
},
git = {
timeout = 500,
},
ui = {
custom_keys = {
},
},
debug = false,
})
require("settings")
require("lang")
require("keymappings")
require("colorschemes")