From 08c2bce8b00fd780fb7999dbffdf7cd174e896fb Mon Sep 17 00:00:00 2001 From: kaerum <84108874+kaerumm@users.noreply.github.com> Date: Wed, 4 Jun 2025 19:40:16 -0300 Subject: [PATCH] fix: glob formatting on windows in neovim nightly (#631) * fix: makes workaround conditional as it is no longer needed for 0.12 * fix: formatted with proper stylua version --- lua/oil/lsp/workspace.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lua/oil/lsp/workspace.lua b/lua/oil/lsp/workspace.lua index 9bacb13..d113b13 100644 --- a/lua/oil/lsp/workspace.lua +++ b/lua/oil/lsp/workspace.lua @@ -68,7 +68,8 @@ local function get_matching_paths(client, filters, paths) end -- Some language servers use forward slashes as path separators on Windows (LuaLS) - if fs.is_windows then + -- We no longer need this after 0.12: https://github.com/neovim/neovim/commit/322a6d305d088420b23071c227af07b7c1beb41a + if vim.fn.has("nvim-0.12") == 0 and fs.is_windows then glob = glob:gsub("/", "\\") end