Skip to content
Discussion options

You must be logged in to vote

Okay, so it seems I have two options for now:

(1) changing blink.cmp config to:

      snippets = {
        preset = "luasnip",
        active = function(_)
          return (
            not require("blink.cmp").is_visible()
            and not require("luasnip").locally_jumpable(1)
            and require("luasnip").expandable()
          )
            or require("luasnip").locally_jumpable(1)
            or require("luasnip").locally_jumpable(-1)
        end,
      }

(2) adding this to luasnip config:

region_check_events = { "InsertEnter" }

The second one is stricter. It deactivates even the most recent snippet once I enter insert mode outside its bounds. I will stick to the first one f…

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@bew
Comment options

@L3MON4D3
Comment options

@L3MON4D3
Comment options

@shushtain
Comment options

Answer selected by shushtain
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