remove usage of globals for util functions
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user