mirror of
https://github.com/Stunkymonkey/dotfiles.git
synced 2026-01-29 09:23:02 +01:00
29 lines
801 B
Lua
29 lines
801 B
Lua
-- Bootstrap lazy.nvim
|
|
local lazypath = vim.fn.stdpath("config") .. "/lua/lazy"
|
|
if not vim.loop.fs_stat(lazypath) then
|
|
-- Submodule should exist, but fail gracefully
|
|
vim.notify("lazy.nvim submodule not found!", vim.log.levels.ERROR)
|
|
end
|
|
vim.opt.rtp:prepend(lazypath)
|
|
|
|
-- Make sure to setup `mapleader` and `maplocalleader` before
|
|
-- loading lazy.nvim so that mappings are correct.
|
|
-- This is also a good place to setup other settings (vim.opt)
|
|
vim.g.mapleader = " "
|
|
vim.g.maplocalleader = "\\"
|
|
|
|
-- Setup lazy.nvim
|
|
require("lazy").setup({
|
|
spec = {
|
|
-- import your plugins
|
|
{ import = "plugins" },
|
|
},
|
|
-- Check for plugin updates once a week
|
|
checker = {
|
|
enabled = true,
|
|
frequency = 3600 * 24 * 7,
|
|
notify = false,
|
|
},
|
|
-- disable luarocks
|
|
rocks = { enabled = false },
|
|
})
|