fix: normalize paths. Fixes #33

This commit is contained in:
Folke Lemaitre 2024-07-07 05:41:25 +02:00
parent 3d5371d20b
commit e0835bdc1a
No known key found for this signature in database
GPG Key ID: 36B7C1C85AAC487F
1 changed files with 1 additions and 0 deletions

View File

@ -100,6 +100,7 @@ function M.get_files(opts)
-- return files that exist or the default files.
-- never return imported file patterms that don't exist
return vim.tbl_filter(function(item)
item.file = vim.fs.normalize(item.file)
if Util.exists(item.file) then
return true
end