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) vim.opt.rtp:prepend(lazypath)
require "plugins" require "plugins"
loadfile(vim.g.base46_cache .. "defaults")() dofile(vim.g.base46_cache .. "defaults")

View file

@ -1,6 +1,6 @@
local cmp = require "cmp" local cmp = require "cmp"
loadfile(vim.g.base46_cache .. "cmp")() dofile(vim.g.base46_cache .. "cmp")
vim.o.completeopt = "menu,menuone,noselect" 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" require "nvchad_ui.lsp"
local M = {} local M = {}

View file

@ -1,4 +1,4 @@
loadfile(vim.g.base46_cache .. "mason")() dofile(vim.g.base46_cache .. "mason")
local options = { local options = {
ensure_installed = { "lua-language-server" }, -- not an option from mason.nvim 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 = { local options = {
filters = { filters = {

View file

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

View file

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

View file

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