The words Under construction in black text on a yellow background with diagonal black stipes surrounding it
I'm in the process of moving my site. It's still a work in progress. Please excuse the mess and broken links.

Setting Individual Initial Modes For Different Neovim Telescope Pickers

TODO: Pull subtitle into page object
Code
require('telescope').setup {
  defaults = {
      initial_mode = 'normal',
  },
}

Then I call the pickers I want to start up with insert mode like this (using `help_tags``) as an example.

Code
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 `file_files`` as the example):

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

Debugging Stuff

I'm moving stuff around right now. All this below is helping me figure out where to put stuff

        -- title

Setting Individual Initial Modes For Different 
Neovim Telescope Pickers

I set the default to normal mode:

-- code
-- lua 

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


-- p

Then I call the pickers I want to start up 
with insert mode like this (using `help_tags``)
as an example.


-- code
-- lua

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


-- p

And as a reference, here's what the calls look 
like for the ones I use the default setting
with this (using `file_files`` as the example):


-- code
-- lua

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



-- blurb

-- categories
-- Neovim 
-- Lua

-- metadata
-- date: 2023-03-21 01:29:22
-- id: 2njk5zif
-- site: aws
-- type: post
-- status: draft