use dofile to load cached theme files

This commit is contained in:
siduck 2023-01-29 21:36:54 +05:30
parent 947186b7ec
commit 4990b23935
9 changed files with 11 additions and 12 deletions

View File

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

View File

@ -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"

View File

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

View File

@ -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

View File

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

View File

@ -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")

View File

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

View File

@ -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 = {

View File

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