From 82ed7d4113c474f309ebeb5133873ccf0a2bcda2 Mon Sep 17 00:00:00 2001 From: Hsieh Chin Fan Date: Sun, 21 Jul 2024 18:49:31 +0800 Subject: Update --- snippets/lua_nvim_lazy_init | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 snippets/lua_nvim_lazy_init (limited to 'snippets/lua_nvim_lazy_init') 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 @@ +-- Bootstrap lazy.nvim +local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim" +if not (vim.uv or vim.loop).fs_stat(lazypath) then + local lazyrepo = "https://github.com/folke/lazy.nvim.git" + local out = vim.fn.system({ "git", "clone", "--filter=blob:none", "--branch=stable", lazyrepo, lazypath }) +end +vim.opt.rtp:prepend(lazypath) + +-- Setup lazy.nvim +require("lazy").setup({ + spec = { + -- import your plugins + { import = "plugins" }, + }, + -- Configure any other settings here. See the documentation for more details. + -- colorscheme that will be used when installing plugins. + install = { colorscheme = { "habamax" } }, + -- automatically check for plugin updates + checker = { enabled = true }, +}) -- cgit v1.2.3-70-g09d2