fix: vim opens telescope when passing -q

This commit is contained in:
Moritz Böhme 2025-02-22 16:56:06 +01:00
parent 286287c63e
commit 3fc02ebff8
No known key found for this signature in database
GPG key ID: 970C6E89EB0547A9

View file

@ -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