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()