Skip to content

Commit 369db6b

Browse files
committed
Check for ui type when setting mappings
1 parent 0867c09 commit 369db6b

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

lua/spectre/init.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,10 @@ M.toggle = function(opts)
197197
end
198198

199199
function M.mapping_buffer(bufnr)
200+
if state.user_config.ui.default ~= 'buffer' then
201+
return
202+
end
203+
200204
_G.__spectre_fold = M.get_fold
201205
vim.cmd([[augroup spectre_panel
202206
au!

0 commit comments

Comments
 (0)