diff options
Diffstat (limited to 'nvim/lua/config/lazy.lua')
| -rw-r--r-- | nvim/lua/config/lazy.lua | 64 |
1 files changed, 32 insertions, 32 deletions
diff --git a/nvim/lua/config/lazy.lua b/nvim/lua/config/lazy.lua index 972e777..76f59cb 100644 --- a/nvim/lua/config/lazy.lua +++ b/nvim/lua/config/lazy.lua | |||
| @@ -1,32 +1,32 @@ | |||
| 1 | -- https://lazy.folke.io/installation | 1 | -- https://lazy.folke.io/installation |
| 2 | 2 | ||
| 3 | local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim" | 3 | local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim" |
| 4 | if not vim.uv.fs_stat(lazypath) then | 4 | if not vim.uv.fs_stat(lazypath) then |
| 5 | local lazyrepo = "https://github.com/folke/lazy.nvim.git" | 5 | local lazyrepo = "https://github.com/folke/lazy.nvim.git" |
| 6 | local out = vim.fn.system({ "git", "clone", "--filter=blob:none", "--branch=stable", lazyrepo, lazypath }) | 6 | local out = vim.fn.system({ "git", "clone", "--filter=blob:none", "--branch=stable", lazyrepo, lazypath }) |
| 7 | if vim.v.shell_error ~= 0 then | 7 | if vim.v.shell_error ~= 0 then |
| 8 | vim.api.nvim_echo({ | 8 | vim.api.nvim_echo({ |
| 9 | { "Failed to clone lazy.nvim:\n", "ErrorMsg" }, | 9 | { "Failed to clone lazy.nvim:\n", "ErrorMsg" }, |
| 10 | { out, "WarningMsg" }, | 10 | { out, "WarningMsg" }, |
| 11 | { "\nPress any key to exit..." }, | 11 | { "\nPress any key to exit..." }, |
| 12 | }, true, {}) | 12 | }, true, {}) |
| 13 | vim.fn.getchar() | 13 | vim.fn.getchar() |
| 14 | os.exit(1) | 14 | os.exit(1) |
| 15 | end | 15 | end |
| 16 | end | 16 | end |
| 17 | vim.opt.rtp:prepend(lazypath) | 17 | vim.opt.rtp:prepend(lazypath) |
| 18 | 18 | ||
| 19 | require("lazy").setup({ | 19 | require("lazy").setup({ |
| 20 | spec = { | 20 | spec = { |
| 21 | { import = "plugins" }, | 21 | { import = "plugins" }, |
| 22 | }, | 22 | }, |
| 23 | checker = { | 23 | checker = { |
| 24 | enabled = true, | 24 | enabled = true, |
| 25 | notify = false, | 25 | notify = false, |
| 26 | frequency = 86400, -- Sekunden (1 Tag) | 26 | frequency = 86400, -- Sekunden (1 Tag) |
| 27 | log = true, | 27 | log = true, |
| 28 | }, | 28 | }, |
| 29 | rocks = { | 29 | rocks = { |
| 30 | enabled = false, | 30 | enabled = false, |
| 31 | }, | 31 | }, |
| 32 | }) | 32 | }) |
