chore(telescope): Disable normal mode
Also remap <leader>ps to <leader>p as there aren't any other commands using the <leader>p prefix in my config. Might change it later.
This commit is contained in:
parent
0e642bff01
commit
52655d2537
1 changed files with 14 additions and 2 deletions
|
|
@ -14,9 +14,21 @@ return {
|
|||
case_mode = "smart_case", -- or "ignore_case" or "respect_case"
|
||||
}
|
||||
},
|
||||
config = function()
|
||||
local actions = require("telescope.actions")
|
||||
require("telescope").setup {
|
||||
defaults = {
|
||||
mappings = {
|
||||
i = {
|
||||
["<esc>"] = actions.close
|
||||
},
|
||||
},
|
||||
}
|
||||
}
|
||||
end,
|
||||
keys = {
|
||||
{ "<C-p>", "<cmd>Telescope find_files<CR>", desc = "Find files" },
|
||||
{ "<leader>ps", "<cmd>Telescope live_grep<CR>", desc = "Live Grep" },
|
||||
{ "<C-p>", "<cmd>Telescope find_files<CR>", desc = "Find files" },
|
||||
{ "<leader>p", "<cmd>Telescope live_grep<CR>", desc = "Live Grep" },
|
||||
-- Search almost everything (except .git folder)
|
||||
{
|
||||
"<leader>fa",
|
||||
|
|
|
|||
Loading…
Reference in a new issue