update
This commit is contained in:
14
lua/utils/reload.lua
Normal file
14
lua/utils/reload.lua
Normal file
@@ -0,0 +1,14 @@
|
||||
local M = {}
|
||||
|
||||
function M.reload()
|
||||
for name, _ in pairs(package.loaded) do
|
||||
if name:match("^core") or name:match("^plugins") or name == "init" then
|
||||
package.loaded[name] = nil
|
||||
end
|
||||
end
|
||||
dofile(vim.env.MYVIMRC)
|
||||
vim.notify("Config reloaded!", vim.log.levels.INFO)
|
||||
end
|
||||
|
||||
return M
|
||||
|
||||
Reference in New Issue
Block a user