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:
parent
5b6068aad7
commit
08c2bce8b0
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue