Skip to content

Commit

Permalink
fix: filter_func is not called (#78)
Browse files Browse the repository at this point in the history
  • Loading branch information
s1n7ax authored Dec 16, 2023
1 parent f32f4f7 commit 794fd5e
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions lua/window-picker/configurer.lua
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,19 @@ function M._backward_compatibility_config_changes(config)
end

function M:config_filter(filter)
if self.config.filter_func then
filter = {
filter_windows = function(_, windows)
return self.config.filter_func(
windows,
self.config.filter_rules
)
end,
}

return filter
end

filter:set_config(self.config.filter_rules)
return filter
end
Expand Down

0 comments on commit 794fd5e

Please sign in to comment.