From af7c85ef9daaf702a179a9b3d66d03eff71db7a6 Mon Sep 17 00:00:00 2001 From: Nanderty Date: Fri, 24 Mar 2023 15:26:51 +0100 Subject: lazyload config --- init.lua | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'init.lua') diff --git a/init.lua b/init.lua index 161969c..63d111d 100644 --- a/init.lua +++ b/init.lua @@ -1,8 +1,5 @@ vim.g.mapleader = ' ' -require('keymaps') -require('options') - local lazypath = vim.fn.stdpath('data') .. '/lazy/lazy.nvim' if not vim.loop.fs_stat(lazypath) then vim.fn.system({ @@ -14,11 +11,13 @@ if not vim.loop.fs_stat(lazypath) then lazypath, }) end + vim.opt.rtp:prepend(lazypath) require('lazy').setup({ spec = { { import = 'plugins' }, + { import = 'config' }, }, defaults = { lazy = true, @@ -28,11 +27,11 @@ require('lazy').setup({ performance = { rtp = { disabled_plugins = { - "gzip", - "netrwPlugin", - "tarPlugin", - "tohtml", - "zipPlugin", + 'gzip', + 'netrwPlugin', + 'tarPlugin', + 'tohtml', + 'zipPlugin', }, }, }, -- cgit v1.2.3