Skip to content

Not working w/ LazyVim (the config + lazynvim package manager) #45

Closed Answered by vbfischer
vbfischer asked this question in Q&A
Discussion options

You must be logged in to vote

I figured it out. LuaSnip was using the <tab> as a key

 {
    "L3MON4D3/LuaSnip",
    dependencies = {
      "rafamadriz/friendly-snippets",
      config = function()
        require("luasnip.loaders.from_vscode").lazy_load()
      end,
    },
    opts = {
      history = true,
      delete_check_events = "TextChanged",
    },
    -- stylua: ignore
    keys = {
      {
        "<tab>",
        function()
          return require("luasnip").jumpable(1) and "<Plug>luasnip-jump-next" or "<tab>"
        end,
        expr = true, silent = true, mode = "i",
      },
      { "<tab>", function() require("luasnip").jump(1) end, mode = "s" },
      { "<s-tab>", function() require("luasnip").jump(-1…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by vbfischer
Comment options

You must be logged in to vote
1 reply
@vbfischer
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
2 participants