use dofile to load cached theme files

pull/1766/head
siduck 1 year ago
parent 947186b7ec
commit 4990b23935

@ -19,4 +19,4 @@ end
vim.opt.rtp:prepend(lazypath)
require "plugins"
loadfile(vim.g.base46_cache .. "defaults")()
dofile(vim.g.base46_cache .. "defaults")

@ -1,6 +1,6 @@
local cmp = require "cmp"
loadfile(vim.g.base46_cache .. "cmp")()
dofile(vim.g.base46_cache .. "cmp")
vim.o.completeopt = "menu,menuone,noselect"

@ -1,4 +1,4 @@
loadfile(vim.g.base46_cache .. "lsp")()
dofile(vim.g.base46_cache .. "lsp")
require "nvchad_ui.lsp"
local M = {}

@ -1,4 +1,4 @@
loadfile(vim.g.base46_cache .. "mason")()
dofile(vim.g.base46_cache .. "mason")
local options = {
ensure_installed = { "lua-language-server" }, -- not an option from mason.nvim

@ -1,4 +1,4 @@
loadfile(vim.g.base46_cache .. "nvimtree")()
dofile(vim.g.base46_cache .. "nvimtree")
local options = {
filters = {

@ -18,7 +18,7 @@ M.autopairs = function()
end
M.blankline = function()
loadfile(vim.g.base46_cache .. "blankline")()
dofile(vim.g.base46_cache .. "blankline")
local options = {
indentLine_enabled = 1,
@ -83,7 +83,7 @@ M.luasnip = function()
end
M.gitsigns = function()
loadfile(vim.g.base46_cache .. "git")()
dofile(vim.g.base46_cache .. "git")
local options = {
signs = {
@ -104,7 +104,7 @@ M.gitsigns = function()
end
M.devicons = function()
loadfile(vim.g.base46_cache .. "devicons")()
dofile(vim.g.base46_cache .. "devicons")
local options = { override = require("nvchad_ui.icons").devicons }
options = require("core.utils").load_override(options, "nvim-tree/nvim-web-devicons")

@ -1,4 +1,4 @@
loadfile(vim.g.base46_cache .. "telescope")()
dofile(vim.g.base46_cache .. "telescope")
local options = {
defaults = {

@ -1,5 +1,4 @@
loadfile(vim.g.base46_cache .. "syntax")()
loadfile(vim.g.base46_cache .. "treesitter")()
dofile(vim.g.base46_cache .. "syntax")
local options = {
ensure_installed = {

@ -1,4 +1,4 @@
loadfile(vim.g.base46_cache .. "whichkey")()
dofile(vim.g.base46_cache .. "whichkey")
local options = {

Loading…
Cancel
Save