From a12b7cb05d9d7af671f1ad3d12b3e34ea17c1c6f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Moritz=20B=C3=B6hme?= Date: Sat, 14 Dec 2024 23:57:05 +0100 Subject: [PATCH] feat: open telescope on startup --- modules/programs/nvim/new_plugins/telescope.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/modules/programs/nvim/new_plugins/telescope.nix b/modules/programs/nvim/new_plugins/telescope.nix index 9d91cc4..206c117 100644 --- a/modules/programs/nvim/new_plugins/telescope.nix +++ b/modules/programs/nvim/new_plugins/telescope.nix @@ -2,6 +2,18 @@ _: { home-manager.users.moritz.programs.nixvim = { + autoCmd = [ + { + event = [ "VimEnter" ]; + callback.__raw = '' + function() + if vim.fn.argc() == 0 then + require("telescope.builtin").find_files() + end + end + ''; + } + ]; plugins = { telescope = { enable = true;