remove usage of globals for util functions
This commit is contained in:
parent
0f013d4e7b
commit
cb97cef2a7
18 changed files with 55 additions and 55 deletions
|
|
@ -1,7 +1,7 @@
|
|||
local opt = vim.opt
|
||||
local g = vim.g
|
||||
|
||||
g.nvchad_theme = nvchad.load_config().ui.theme
|
||||
g.nvchad_theme = require("core.utils").load_config().ui.theme
|
||||
|
||||
-- use filetype.lua instead of filetype.vim
|
||||
g.did_load_filetypes = 0
|
||||
|
|
@ -86,4 +86,4 @@ vim.schedule(function()
|
|||
end)
|
||||
|
||||
-- load user options if the file exists
|
||||
nvchad.load_config().options.user()
|
||||
require("core.utils").load_config().options.user()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue