diff --git a/nvim/lua/chadrc.lua b/nvim/lua/chadrc.lua index 8204509..e6a786f 100644 --- a/nvim/lua/chadrc.lua +++ b/nvim/lua/chadrc.lua @@ -20,4 +20,13 @@ vim.api.nvim_create_autocmd("BufWritePost", { command = "!killall -SIGUSR1 kitty", }) +-- Open telescope on startup if no files were passed +vim.api.nvim_create_autocmd("VimEnter", { + callback = function() + if #vim.fn.argv() == 0 then + require("telescope.builtin").find_files() + end + end, +}) + return M