aboutsummaryrefslogtreecommitdiffhomepage
path: root/snippets/lua_nvim_lazy_init
diff options
context:
space:
mode:
authorHsieh Chin Fan <pham@topo.tw>2024-07-21 18:49:31 +0800
committerHsieh Chin Fan <pham@topo.tw>2024-07-21 18:49:31 +0800
commit82ed7d4113c474f309ebeb5133873ccf0a2bcda2 (patch)
treeb55f17044d96cde70e4ea88200b8db15bf61ca00 /snippets/lua_nvim_lazy_init
parent5dc2485ff1530fcff26161a35742043d038c90c4 (diff)
Update
Diffstat (limited to 'snippets/lua_nvim_lazy_init')
-rw-r--r--snippets/lua_nvim_lazy_init20
1 files changed, 20 insertions, 0 deletions
diff --git a/snippets/lua_nvim_lazy_init b/snippets/lua_nvim_lazy_init
new file mode 100644
index 0000000..09e21b6
--- /dev/null
+++ b/snippets/lua_nvim_lazy_init
@@ -0,0 +1,20 @@
1-- Bootstrap lazy.nvim
2local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
3if not (vim.uv or vim.loop).fs_stat(lazypath) then
4 local lazyrepo = "https://github.com/folke/lazy.nvim.git"
5 local out = vim.fn.system({ "git", "clone", "--filter=blob:none", "--branch=stable", lazyrepo, lazypath })
6end
7vim.opt.rtp:prepend(lazypath)
8
9-- Setup lazy.nvim
10require("lazy").setup({
11 spec = {
12 -- import your plugins
13 { import = "plugins" },
14 },
15 -- Configure any other settings here. See the documentation for more details.
16 -- colorscheme that will be used when installing plugins.
17 install = { colorscheme = { "habamax" } },
18 -- automatically check for plugin updates
19 checker = { enabled = true },
20})