Coder Social home page Coder Social logo

Comments (10)

KevinRizzoTO avatar KevinRizzoTO commented on June 12, 2024 1

I also seem to be having this issue 🤔 Mappings that start with non-alphabetical characters (e.g <) don't seem to work. I say the comment above about this being expected for the native menu. However, I didn't set this option anywhere. The only reference I see is outlined in the nvim-cmp wiki but it's an experimental feature that I haven't enabled.

Happy to help with any debugging! I could use a bit of assistance with where to look though.

from cmp_luasnip.

danrot avatar danrot commented on June 12, 2024

I want to kindly bump this issue, since I have the same problem 😕

from cmp_luasnip.

saadparwaiz1 avatar saadparwaiz1 commented on June 12, 2024

Are you using the native cmp pop up menu or the floating window?

native menu doesn't work with characters that are not alphabetical. So if you change the trigger to remove any non alphabetical characters it should work.

from cmp_luasnip.

bennypowers avatar bennypowers commented on June 12, 2024

So this is the issue?
https://github.com/bennypowers/dotfiles/blob/d5e010b22246ab22b044241498f1544f6b9c1fab/.config/nvim/lua/config/cmp.lua#L9

from cmp_luasnip.

saadparwaiz1 avatar saadparwaiz1 commented on June 12, 2024

So this is the issue?

https://github.com/bennypowers/dotfiles/blob/d5e010b22246ab22b044241498f1544f6b9c1fab/.config/nvim/lua/config/cmp.lua#L9

Yeah can you set it to false and see if it is fixed?

from cmp_luasnip.

danrot avatar danrot commented on June 12, 2024

For me it was another issue, I am just writing it here in case anybody else experiences the same issue:

I wanted to use my ultisnip snippets, and they have a different format... After I realized that I misread the luasnip documentation and wrote the snippets wrong:

snippet php vd
    var_dump($0);die();

In the documentation it looked to me like I need to set the language after the snippet keyword, which is not the case.

from cmp_luasnip.

saadparwaiz1 avatar saadparwaiz1 commented on June 12, 2024

@bennypowers can you confirm if turning the native menu off fixed the issue for you?

from cmp_luasnip.

bennypowers avatar bennypowers commented on June 12, 2024

from cmp_luasnip.

bennypowers avatar bennypowers commented on June 12, 2024

This didn't help, neither did removing the dash chars from the snippet names:

Screenshot from 2022-10-31 14-36-32
Screenshot from 2022-10-31 14-33-12
Screenshot from 2022-10-31 14-33-04

from cmp_luasnip.

bennypowers avatar bennypowers commented on June 12, 2024

I have this problem with all my snippets, whether defined as lua snippets, snipmate, whatever.

If i restart nvim, I can see ONLY my snipmate snippets in the popup menu for one or two seconds, until the typescript lsp server comes online. After which, the snipmate snippets disappear and are replaced by LSP snippets - at that point, ONLY LSP snippets are available.

Screencast.from.2023-01-08.09-49-03.webm

from cmp_luasnip.

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.