nvim-neorg / neorg-telescope

Telescope.nvim integration for Neorg
GNU General Public License v3.0
187 stars 24 forks source link

<C-l> in insert mode is always active #32

Closed svenXY closed 1 year ago

svenXY commented 1 year ago

Hi, I'm using <c-l> in insert mode for other things (luasnips), therefore I'd like to remap them to something else here.

I have set

    local neorg_callbacks = require("neorg.callbacks")

    neorg_callbacks.on_event("core.keybinds.events.enable_keybinds", function(_, keybinds)
      -- Map all the below keybinds only when the "norg" mode is active
      keybinds.map_event_to_mode("norg", {
        i = { -- Bind  in insert mode
          { "<C-L>", "core.integrations.telescope.insert_link" }, -- capital L here
        },
      }, {
          silent = true,
          noremap = true,
        })
    end)

but <c-l> in insert mode is still active. Can the mapping be removed somehow?

svenXY commented 1 year ago

never mind - (n)vim cannot distinguish between <c-L> and <c-l>, so I had to switch wo <c-i> (read: Insert) instead.

BoManev commented 1 year ago

I think this is a limitation of the terminal and not vim In alacritty I use the following: - { key: L, mods: Control|Shift, chars: "\x1b[76;5u" }