mirror of
https://github.com/NotAShelf/specs.nvim.git
synced 2024-12-27 05:02:24 +00:00
fix: disable specs when in cmd-line, closes #21
This commit is contained in:
parent
6fbdb0fe1f
commit
2743e412bb
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue