From 77c1287db83d2bd74f0a7b1fa7174ae448fcd9f4 Mon Sep 17 00:00:00 2001 From: siduck Date: Wed, 1 Jun 2022 19:33:11 +0530 Subject: [PATCH] add global for transparency and fix (#1164) vim matchup was causing #1164 as we lazy load it and its a lil high on startup so I removed it, gotta wait till v0.8 releases and then we could use winbar.nvim instead --- lua/core/options.lua | 7 +++++-- lua/plugins/init.lua | 7 ------- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/lua/core/options.lua b/lua/core/options.lua index 05e3c76..168a357 100644 --- a/lua/core/options.lua +++ b/lua/core/options.lua @@ -1,12 +1,15 @@ local opt = vim.opt local g = vim.g -g.nvchad_theme = require("core.utils").load_config().ui.theme +local config = require("core.utils").load_config() + +g.nvchad_theme = config.ui.theme -- use filetype.lua instead of filetype.vim g.did_load_filetypes = 0 g.do_filetype_lua = 1 g.toggle_theme_icon = "  " +g.transparency = config.ui.transparency opt.confirm = true opt.laststatus = 3 -- global statusline @@ -86,4 +89,4 @@ vim.schedule(function() end) -- load user options if the file exists -require("core.utils").load_config().options.user() +config.options.user() diff --git a/lua/plugins/init.lua b/lua/plugins/init.lua index 613ae4b..7458e6f 100644 --- a/lua/plugins/init.lua +++ b/lua/plugins/init.lua @@ -105,13 +105,6 @@ local plugins = { end, }, - ["andymass/vim-matchup"] = { - opt = true, - setup = function() - require("core.utils").packer_lazy_load "vim-matchup" - end, - }, - ["max397574/better-escape.nvim"] = { event = "InsertCharPre", config = function()