diff options
| author | Hsieh Chin Fan <pham@topo.tw> | 2024-07-21 18:49:31 +0800 |
|---|---|---|
| committer | Hsieh Chin Fan <pham@topo.tw> | 2024-07-21 18:49:31 +0800 |
| commit | 82ed7d4113c474f309ebeb5133873ccf0a2bcda2 (patch) | |
| tree | b55f17044d96cde70e4ea88200b8db15bf61ca00 /snippets | |
| parent | 5dc2485ff1530fcff26161a35742043d038c90c4 (diff) | |
Update
Diffstat (limited to 'snippets')
| -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 | }) | ||