remove usage of globals for util functions

This commit is contained in:
siduck
2022-05-29 16:07:47 +05:30
parent 0f013d4e7b
commit cb97cef2a7
18 changed files with 55 additions and 55 deletions

View File

@@ -71,9 +71,7 @@ local plugins = {
config = function()
require("plugins.configs.others").gitsigns()
end,
setup = function()
nvchad.packer_lazy_load "gitsigns.nvim"
end,
setup = require("core.utils").packer_lazy_load "gitsigns.nvim",
},
-- lsp stuff
@@ -81,7 +79,7 @@ local plugins = {
["williamboman/nvim-lsp-installer"] = {
opt = true,
setup = function()
nvchad.packer_lazy_load "nvim-lsp-installer"
require("core.utils").packer_lazy_load "nvim-lsp-installer"
-- reload the current file so lsp actually starts for it
vim.defer_fn(function()
vim.cmd 'if &ft == "packer" | echo "" | else | silent! e %'
@@ -107,9 +105,7 @@ local plugins = {
["andymass/vim-matchup"] = {
opt = true,
setup = function()
nvchad.packer_lazy_load "vim-matchup"
end,
setup = require("core.utils").packer_lazy_load "vim-matchup",
},
["max397574/better-escape.nvim"] = {
@@ -202,9 +198,7 @@ local plugins = {
["folke/which-key.nvim"] = {
opt = true,
setup = function()
nvchad.packer_lazy_load "which-key.nvim"
end,
setup = require("core.utils").packer_lazy_load "which-key.nvim",
config = function()
require "plugins.configs.whichkey"
end,