fix: vim opens telescope when passing -q
This commit is contained in:
parent
286287c63e
commit
3fc02ebff8
1 changed files with 1 additions and 1 deletions
|
|
@ -7,7 +7,7 @@ _:
|
||||||
event = [ "VimEnter" ];
|
event = [ "VimEnter" ];
|
||||||
callback.__raw = ''
|
callback.__raw = ''
|
||||||
function()
|
function()
|
||||||
if vim.fn.argc() == 0 then
|
if vim.fn.len(vim.api.nvim_get_vvar("argv")) <= 8 then
|
||||||
require("telescope.builtin").find_files()
|
require("telescope.builtin").find_files()
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue