Giter Site home page Giter Site logo

Comments (10)

hrsh7th avatar hrsh7th commented on June 17, 2024 1

OK. It seems a cmp-vsnip problem.

from nvim-cmp.

hrsh7th avatar hrsh7th commented on June 17, 2024 1

@abzcoding No. because cmp-vsnip issue is solved by cmp-vsnip's commit.
You should open issue to cmp-luasnip repo.

from nvim-cmp.

hrsh7th avatar hrsh7th commented on June 17, 2024

It's weird... I can't reproduce.

Anyway, you can set completion.autocomplete = { cmp.TriggerEvent.TextChanged } to avoid this.

from nvim-cmp.

weizheheng avatar weizheheng commented on June 17, 2024

Thanks for the reply. I have added that but the same thing still happens.

  completion = {
    autocomplete = { cmp.TriggerEvent.TextChanged },
    completeopt = 'menu,menuone,noinsert'
  },

from nvim-cmp.

weizheheng avatar weizheheng commented on June 17, 2024

I tried debugging them a bit, and it seems like if the prefix contains any spaces then it will get triggered. Once i remove the spaces then it will not get triggered.

  "if else": {
    "prefix": "if else",
    "body": ["if ${1:test}", "\t$0", "else", "\t", "end"]
  },
  "if elsif": {
    "prefix": "if elsif",
    "body": ["if ${1:test}", "\t$0", "elsif ", "\t", "end"]
  },

from nvim-cmp.

weizheheng avatar weizheheng commented on June 17, 2024

I will close this issue then, do you want me to create one on cmp-vsnip?

For my use case now, I will just rename the prefix and delete those that I am not using.

Thanks again! Enjoying the new one so far, great work! :)

from nvim-cmp.

hrsh7th avatar hrsh7th commented on June 17, 2024

Hm... I'm investigating it now. It's a bit difficult 🤣

from nvim-cmp.

hrsh7th avatar hrsh7th commented on June 17, 2024

I've forgotten pushing local changes on cmp-vsnip 🤭

from nvim-cmp.

abzcoding avatar abzcoding commented on June 17, 2024

i have a similar issue with luasnip as well, so I'm not sure the root cause is cmp-vsnip or not
image
and even if I do the following,
image

I'll get the same issue just after doing sth like permissions =

my configurations for reference

from nvim-cmp.

abzcoding avatar abzcoding commented on June 17, 2024

cmp-luasnip

thank you, just added a PR and tested it locally saadparwaiz1/cmp_luasnip#3

from nvim-cmp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.