Skip to content

Commit

Permalink
fix(windows): Corrected regex matching path with backslash. (#396)
Browse files Browse the repository at this point in the history
  • Loading branch information
dbger committed Mar 29, 2024
1 parent 2feb580 commit 1d19a5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/trouble/sources/init.lua
Expand Up @@ -51,7 +51,7 @@ end
function M.load()
local rtp = vim.api.nvim_get_runtime_file("lua/trouble/sources/*.lua", true)
for _, file in ipairs(rtp) do
local name = file:match("lua/trouble/sources/(.*)%.lua")
local name = file:match("lua[/\\]trouble[/\\]sources[/\\](.*)%.lua")
if name and name ~= "init" and not M.sources[name] then
Util.try(function()
M.register(name)
Expand Down

0 comments on commit 1d19a5f

Please sign in to comment.