config.nvim icon indicating copy to clipboard operation
config.nvim copied to clipboard

Question about your telescope config

Open JustAHobbyDev opened this issue 1 year ago • 0 comments

https://github.com/tjdevries/config.nvim/blob/006889bbfb6ff655e2d8e33b26453fa4d614b99b/lua/custom/telescope.lua#L21-L23

Hey Teej! I've been enjoying your Advent of Nvim video series. While I'm not new to Neovim, it has been great getting the guided tour through the configuration and has helped me refine my own.

That said, I've been looking at other people's configs on GitHub abd I noticed a few things about your Telescope config that I was curious about:

  1. You've opted for no config directive in the spec. I'm guessing you don't think it necessary because your telescope is not lazy loaded? I think I've misunderstood how lazy loading works until recently. As per the lazy.nvim docs:

Plugins will be lazy-loaded when one of the following is true:

The plugin only exists as a dependency in your spec It has an event, cmd, ft or keys key config.defaults.lazy == true

  1. Your use of pcall to load the extensions. Is this needed because Telescope is not lazy loaded?

JustAHobbyDev avatar Jan 11 '25 17:01 JustAHobbyDev