diff --git a/.config/nvim/lua/core/functions.lua b/.config/nvim/lua/core/functions.lua index a6ecae1..be6f69f 100644 --- a/.config/nvim/lua/core/functions.lua +++ b/.config/nvim/lua/core/functions.lua @@ -8,9 +8,7 @@ end M.normalize_path = function(path) if not path then return nil end - return string.find(vim.loop.os_uname().sysname, "NT") - and path:gsub("\\", "/") - or path + return IS_WINDOWS() and path:gsub("\\", "/") or path end M.get_file_path = function()