Giter Site home page Giter Site logo

Comments (11)

smjonas avatar smjonas commented on July 17, 2024

Ok this is weird. Did I get this correct: it does not happen when you have disabled cmp-nvim-ultisnips and only enabled UltiSnips? Or does it also happen then? Because in that case it is probably an UltiSnips issue.

from cmp-nvim-ultisnips.

Astrantia avatar Astrantia commented on July 17, 2024

Ok this is weird. Did I get this correct: it does not happen when you have disabled cmp-nvim-ultisnips and only enabled UltiSnips? Or does it also happen then? Because in that case it is probably an UltiSnips issue.

I didn't think to do that, but correct, it also happens when i disable cmp-nvim-ultisnips, so it is an UltiSnips issue. Should I close this issue and open one in UltiSnips? But they don't care much about neovim over there from what I remember

from cmp-nvim-ultisnips.

Astrantia avatar Astrantia commented on July 17, 2024

It's also strange because this doesn't happen with other language servers, so there's something specific with tsserver that does it. I haven't configured tsserver with extra configs.

from cmp-nvim-ultisnips.

smjonas avatar smjonas commented on July 17, 2024

I didn't think to do that, but correct, it also happens when i disable cmp-nvim-ultisnips, so it is an UltiSnips issue. Should I close this issue and open one in UltiSnips? But they don't care much about neovim over there from what I remember

Yeah that's true. I will try to reproduce this first to be sure it also occurs for me.

from cmp-nvim-ultisnips.

smjonas avatar smjonas commented on July 17, 2024

I can reproduce this by typing '${|}' in a .ts file (where | is the cursor) and hitting Tab. However, uninstalling tsserver does not help but removing cmp-nvim-ultisnips does. So it is indeed a bug in the new cmp-nvim-ultisnips keybindings.

Update: it also appears when cmp-nvim-ultisnips is disabled (don't know why I thought it didn't happen then), so it's not a cmp-nvim-ultisnips bug. Investigating...

from cmp-nvim-ultisnips.

smjonas avatar smjonas commented on July 17, 2024

This might be a nvim-cmp issue as I tested it with a minimal config. I will continue later.
We should confirm this, then create a bug report on the cmp repo.

from cmp-nvim-ultisnips.

Astrantia avatar Astrantia commented on July 17, 2024

I can reproduce this by typing '${|}' in a .ts file (where | is the cursor) and hitting Tab. However, uninstalling tsserver does not help but removing cmp-nvim-ultisnips does. So it is indeed a bug in the new cmp-nvim-ultisnips keybindings.

Update: it also appears when cmp-nvim-ultisnips is disabled (don't know why I thought it didn't happen then), so it's not a cmp-nvim-ultisnips bug. Investigating...

And from your experience it is not tied to enabling/disabling tsserver? Fixing what you found might fix the one I'm facing as well.

from cmp-nvim-ultisnips.

smjonas avatar smjonas commented on July 17, 2024

Yes, I uninstalled tsserver and it still occurred. I now reported it on the cmp repo.

from cmp-nvim-ultisnips.

smjonas avatar smjonas commented on July 17, 2024

Seems like hrsh7th could not reproduce it... Are you on Linux by any chance? I also could not reproduce it anymore after deleting the other plugins from my packer directory. Also could you share your plugin list so that we can narrow down which plugin(s) might cause this (that we are both using)?

from cmp-nvim-ultisnips.

Astrantia avatar Astrantia commented on July 17, 2024

Seems like hrsh7th could not reproduce it... Are you on Linux by any chance? I also could not reproduce it anymore after deleting the other plugins from my packer directory. Also could you share your plugin list so that we can narrow down which plugin(s) might cause this (that we are both using)?

I have bunch of plugins installed, so I'll try to narrow down what plugin or setting is interfering here, but it's definitely has to do with tsserver, because enabling/disabling it makes my problem go away and come back

from cmp-nvim-ultisnips.

smjonas avatar smjonas commented on July 17, 2024

I found the cause for this issue. It is caused by vim-snippets, specifically by this javascript snippet (link):

snippet ${
	${${1}}${0}

(typescript snippets extend from javascript snippets)

Honestly, I think this snippet should be removed from vim-snippets since it doesn't seem that useful and causes issues when expanding other snippets. However, I am not sure if it's worth opening a PR there since the plugin doesn't seem too well maintained currently.

But please feel free (you or someone else that comes across this) to open an issue there or a PR! :)

from cmp-nvim-ultisnips.

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.