]> git.rmz.io Git - dotfiles.git/blob - nvim/lua/config/lazy.lua
vim: do not set pastetoggle in nvim
[dotfiles.git] / nvim / lua / config / lazy.lua
1 local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
2 if not vim.loop.fs_stat(lazypath) then
3 -- bootstrap lazy.nvim
4 vim.fn.system({ "git", "clone", "--filter=blob:none", "https://github.com/folke/lazy.nvim.git", "--branch=stable", lazypath })
5 end
6 vim.opt.rtp:prepend(vim.env.LAZY or lazypath)
7
8 require("lazy").setup({
9 spec = {
10 { import = "plugins" },
11 { import = "plugins.lang" },
12 },
13 defaults = {
14 lazy = false,
15 version = false, -- always use the latest git commit
16 },
17 install = { colorscheme = { "onenord", "habamax" } },
18 checker = {
19 enabled = true,
20 notify = false,
21 },
22 performance = {
23 rtp = {
24 -- HACK: do not reset rtp to allow interop with vim-plug
25 reset = false,
26 -- disable some rtp plugins
27 disabled_plugins = {
28 "gzip",
29 -- "matchit",
30 -- "matchparen",
31 "netrwPlugin",
32 "tarPlugin",
33 "tohtml",
34 "tutor",
35 "zipPlugin",
36 },
37 },
38 },
39 })