fix: disable specs when in cmd-line, closes #21

This commit is contained in:
edluffy 2022-09-20 15:11:29 +01:00
parent 6fbdb0fe1f
commit 2743e412bb

View file

@ -20,6 +20,10 @@ function M.should_show_specs(start_win_id)
return false
end
if vim.fn.getcmdpos() ~= 0 then
return false
end
if type(opts.ignore_filetypes) ~= 'table' or type(opts.ignore_buftypes) ~= 'table' then
return true
end