From 70fe2441aa025243e29d47aabe1b6674c4e0ed71 Mon Sep 17 00:00:00 2001 From: talha Date: Thu, 23 Jul 2026 21:12:35 +0500 Subject: Updated config --- lua/talha/functions.lua | 25 ------------------------- 1 file changed, 25 deletions(-) (limited to 'lua/talha/functions.lua') 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' -- cgit v1.2.3