diff options
| author | srdusr <trevorgray@srdusr.com> | 2023-02-10 10:51:40 +0200 |
|---|---|---|
| committer | srdusr <trevorgray@srdusr.com> | 2023-02-10 10:51:40 +0200 |
| commit | f9e9b589580af90d9d22156471d663465fa48f59 (patch) | |
| tree | ddad5b89d8bf0e44089e0553a2effb323a696be4 /lua/user | |
| parent | d1c7fff02586ee447d8c36d47c037436a6f25f80 (diff) | |
| download | dotfiles-f9e9b589580af90d9d22156471d663465fa48f59.tar.gz dotfiles-f9e9b589580af90d9d22156471d663465fa48f59.zip | |
Removed Unload lua namespace function
Diffstat (limited to 'lua/user')
| -rw-r--r-- | lua/user/utils.lua | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/lua/user/utils.lua b/lua/user/utils.lua index 08dba6f..07867a4 100644 --- a/lua/user/utils.lua +++ b/lua/user/utils.lua @@ -40,19 +40,6 @@ end -------------------------------------------------- ---- Unload lua namespace -M['unload_lua_namespace'] = function(prefix) - local prefix_with_dot = prefix .. '.' - for key, value in pairs(package.loaded) do - if key == prefix or key:sub(1, #prefix_with_dot) == prefix_with_dot then - package.loaded[key] = nil - end - end -end - - --------------------------------------------------- - --- Toggle cmp completion vim.g.cmp_toggle_flag = false -- initialize local normal_buftype = function() |
