aboutsummaryrefslogtreecommitdiffhomepage
path: root/vim/nvim/lazy.lua
diff options
context:
space:
mode:
authorHsieh Chin Fan <pham@topo.tw>2024-06-24 16:34:51 +0800
committerHsieh Chin Fan <pham@topo.tw>2024-06-24 16:34:51 +0800
commit2a1645ae9593114514a7f28fa6d9109d1820375d (patch)
treebab2ac0a019ca9af961a04b2a58f0bac3d49bdeb /vim/nvim/lazy.lua
parentfdb53f590cef5499b14322d22fee47722b135626 (diff)
Update
Diffstat (limited to 'vim/nvim/lazy.lua')
-rw-r--r--vim/nvim/lazy.lua39
1 files changed, 39 insertions, 0 deletions
diff --git a/vim/nvim/lazy.lua b/vim/nvim/lazy.lua
new file mode 100644
index 0000000..6cfadf0
--- /dev/null
+++ b/vim/nvim/lazy.lua
@@ -0,0 +1,39 @@
1vim.g.base46_cache = vim.fn.stdpath "data" .. "/nvchad/base46/"
2vim.g.mapleader = ","
3
4-- bootstrap lazy and all plugins
5local lazypath = vim.fn.stdpath "data" .. "/lazy/lazy.nvim"
6
7if not vim.loop.fs_stat(lazypath) then
8 local repo = "https://github.com/folke/lazy.nvim.git"
9 vim.fn.system { "git", "clone", "--filter=blob:none", repo, "--branch=stable", lazypath }
10end
11
12vim.opt.rtp:prepend(lazypath)
13
14local lazy_config = require "configs.lazy"
15
16-- load plugins
17require("lazy").setup({
18 {
19 "NvChad/NvChad",
20 lazy = false,
21 branch = "v2.5",
22 import = "nvchad.plugins",
23 config = function()
24 require "options"
25 end,
26 },
27
28 { import = "plugins" },
29}, lazy_config)
30
31-- load theme
32dofile(vim.g.base46_cache .. "defaults")
33dofile(vim.g.base46_cache .. "statusline")
34
35require "nvchad.autocmds"
36
37vim.schedule(function()
38 require "mappings"
39end)