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
Signed by: moritz
GPG key ID: 970C6E89EB0547A9

View file

@ -7,7 +7,7 @@ _:
event = [ "VimEnter" ];
callback.__raw = ''
function()
if vim.fn.argc() == 0 then
if vim.fn.len(vim.api.nvim_get_vvar("argv")) <= 8 then
require("telescope.builtin").find_files()
end
end