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' }
)