Home
Head's Up: I'm in the middle of upgrading my site. Most things are in place, but there are something missing and/or broken including image alt text. Please bear with me while I'm getting things fixed.

Setting Individual Initial Modes For Different Neovim Telescope Pickers

I set the default to normal mode :

lua
require('telescope').setup {
  defaults = {
      initial_mode = 'normal',
  },
}

Then I call the pickers I want to start up with insert mode like this (using [TODO: Code shorthand span ] ) as an example.

lua
vim.keymap.set('n', '<leader>sh', function() 
  require('telescope.builtin').help_tags({
    initial_mode = 'insert',
  })
end, { desc = '[S]earct [H]elp'})

And as a reference, here's what the calls look like for the ones I use the default setting with this (using [TODO: Code shorthand span ] as the example) :

lua
vim.keymap.set('n', '<leader>sf', 
  require('telescope.builtin').find_files, 
  { desc = '[S]earch [F]iles' }
)