Skip to content

Commit

Permalink
feat(telescope): update abbr configuration
Browse files Browse the repository at this point in the history
The keymap configuration for Telescope has been updated. The 'tel' command
has been moved to the 'keys' section, and the keymap set for 'n', ',<cr>',
has been removed. This change simplifies the keymap configuration and
removes unnecessary keymap settings.
  • Loading branch information
ryoppippi committed May 11, 2024
1 parent ae792d1 commit ed6df17
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions nvim/lua/plugin/telescope.lua
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ return {
name = "telescope-keymap",
dir = "",
event = "VeryLazy",
cmd = "Telescope",
keys = {
{ "tel", "Telescope", mode = "ca" },
},
config = function()
local function telescope_grep_any()
local builtin = require("telescope.builtin")
Expand All @@ -26,8 +30,6 @@ return {
})
grep_telescope_any()
end
vim.keymap.set("ca", "tel", "Telescope")
vim.keymap.set("n", ",<cr>", ":Telescope ", { expr = true })
require("which-key").register({
[","] = {
name = "+Telescope",
Expand Down

0 comments on commit ed6df17

Please sign in to comment.