summaryrefslogtreecommitdiff
path: root/lua/talha/functions.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/talha/functions.lua')
-rw-r--r--lua/talha/functions.lua25
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'