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
This commit is contained in:
kaerum 2025-06-04 19:40:16 -03:00 committed by GitHub
parent 5b6068aad7
commit 08c2bce8b0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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