diff options
Diffstat (limited to 'snippets/lua_nvim_lazy_init')
-rw-r--r-- | snippets/lua_nvim_lazy_init | 20 |
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 | ||
2 | local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim" | ||
3 | if 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 }) | ||
6 | end | ||
7 | vim.opt.rtp:prepend(lazypath) | ||
8 | |||
9 | -- Setup lazy.nvim | ||
10 | require("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 | }) | ||