From a2148c1e19e8a1658d73b3fb41e7b329f7aa911f Mon Sep 17 00:00:00 2001 From: Riyyi Date: Thu, 10 Apr 2025 22:34:08 +0200 Subject: [PATCH] Neovim: More Windows --- .config/nvim/lua/core/functions.lua | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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()