Skip to content

how to deactivate the keymaps, "s" and "S", in visual (x) mode? #146

Answered by Praczet
hopezh asked this question in Q&A
Discussion options

You must be logged in to vote

In the LazyVim's webpage you can check how leap.nvim is configured.

{
  "ggandor/leap.nvim",
  keys = {
    { "s", mode = { "n", "x", "o" }, desc = "Leap forward to" },
    { "S", mode = { "n", "x", "o" }, desc = "Leap backward to" },
    { "gs", mode = { "n", "x", "o" }, desc = "Leap from windows" },
  },
  config = function(_, opts)
    local leap = require("leap")
    for k, v in pairs(opts) do
      leap.opts[k] = v
    end
    leap.add_default_mappings(true)
    vim.keymap.del({ "x", "o" }, "x")
    vim.keymap.del({ "x", "o" }, "X")
  end,
}

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
4 replies
@hopezh
Comment options

@Praczet
Comment options

@Praczet
Comment options

Answer selected by hopezh
@hopezh
Comment options

Comment options

You must be logged in to vote
1 reply
@unphased
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants