diff options
| author | talha <talha@talhaamir.xyz> | 2026-07-23 21:12:35 +0500 |
|---|---|---|
| committer | talha <talha@talhaamir.xyz> | 2026-07-23 21:12:35 +0500 |
| commit | 70fe2441aa025243e29d47aabe1b6674c4e0ed71 (patch) | |
| tree | 526b58ec31ce6dd0075fe1e76e6828a5ab51ae14 /lua/talha/functions.lua | |
| parent | 75b48fc3247b412bb1580c47e96022cffdc8ba9a (diff) | |
Updated config
Diffstat (limited to 'lua/talha/functions.lua')
| -rw-r--r-- | lua/talha/functions.lua | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/lua/talha/functions.lua b/lua/talha/functions.lua index 2a26483..06a66d5 100644 --- a/lua/talha/functions.lua +++ b/lua/talha/functions.lua @@ -3,31 +3,6 @@ function GetCurrFileName() return filename end -local function _ReloadConfigsInPath(path_selector) - local config_paths = vim.fn.glob(path_selector, true, true) - - for _, filepath in ipairs(config_paths) do - dofile(filepath) - end -end - -function ReloadLuaConfig() - for name,_ in pairs(package.loaded) do - if name:match('^linux') then - package.loaded[name] = nil - end - end - - -- Reload init/ directory - local lua_path_selector = vim.fn.stdpath('config') .. '/lua/**/*.lua' - _ReloadConfigsInPath(lua_path_selector) - - local after_path_selector = vim.fn.stdpath('config') .. '/after/**/*.lua' - _ReloadConfigsInPath(after_path_selector) - - print('Nvim configurations reloaded') -end - function ToggleSpellCheck() vim.opt.spell = not(vim.opt.spell:get()) vim.opt.spelllang = 'en_us' |
