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,5 +1,7 @@
|
|||
local M = {}
|
||||
|
||||
local load_override = require("core.utils").load_override
|
||||
|
||||
M.autopairs = function()
|
||||
local present1, autopairs = pcall(require, "nvim-autopairs")
|
||||
local present2, cmp = pcall(require, "cmp")
|
||||
|
|
@ -32,7 +34,7 @@ M.better_escape = function()
|
|||
keys = "<Esc>",
|
||||
}
|
||||
|
||||
options = nvchad.load_override(options, "max397574/better-escape.nvim")
|
||||
options = load_override(options, "max397574/better-escape.nvim")
|
||||
escape.setup(options)
|
||||
end
|
||||
|
||||
|
|
@ -63,7 +65,7 @@ M.blankline = function()
|
|||
show_first_indent_level = false,
|
||||
}
|
||||
|
||||
options = nvchad.load_override(options, "lukas-reineke/indent-blankline.nvim")
|
||||
options = load_override(options, "lukas-reineke/indent-blankline.nvim")
|
||||
blankline.setup(options)
|
||||
end
|
||||
|
||||
|
|
@ -93,7 +95,7 @@ M.colorizer = function()
|
|||
},
|
||||
}
|
||||
|
||||
options = nvchad.load_override(options, "NvChad/nvim-colorizer.lua")
|
||||
options = load_override(options, "NvChad/nvim-colorizer.lua")
|
||||
|
||||
colorizer.setup(options["filetypes"], options["user_default_options"])
|
||||
vim.cmd "ColorizerReloadAllBuffers"
|
||||
|
|
@ -149,7 +151,7 @@ M.signature = function()
|
|||
padding = "", -- character to pad on left and right of signature can be ' ', or '|' etc
|
||||
}
|
||||
|
||||
options = nvchad.load_override(options, "ray-x/lsp_signature.nvim")
|
||||
options = load_override(options, "ray-x/lsp_signature.nvim")
|
||||
lsp_signature.setup(options)
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue