Comments (12)
Hi, any workaround for this problem?
from cmp_luasnip.
Let me look into this :)
from cmp_luasnip.
Mhmm, I guess you'd have to take a look at cmp's issues and find similar ones, maybe see what kind of debugging-steps are taken (is there a quick way to check when the postfix-snippet is overridden?)
Maybe there is some heuristic in cmp to recognize specific items, and postfix-snippets trigger just that (starting with a dot..)
from cmp_luasnip.
I managed to narrow down the probable cause. A postfix snippet not appearing in the list only happens when my tmux or nvim_lsp source is active. So either the tmux/lsp source itself is the problem or that fact that the tmux/lsp source provides many many completion entries.
But what is not explained by the tmux source is the fact that I need to write out the full postfix snippet name to make it appear as a suggestion. This seems to be a problem independent of the "tmux source problem". This problem disappears if luasnip
is my only source.
Example: The snippet's name is .log
Now I disable all sources expect for luasnip
and .l
is sufficient to make the snippet appear.
from cmp_luasnip.
Oh btw, are you using manual or auto-completion? It works for me with manual, but haven't tried auto
from cmp_luasnip.
@L3MON4D3 What do you mean by auto-completion? I guess I use manual because I have to manually expand snippets and can't recall that I have configured something related to it.
And do you have a nvim_lsp source? Because the bug appears as soon as I activate it.
from cmp_luasnip.
What do you mean by auto-completion?
Oh, just whether it's always on or if you have to press some key to invoke nvim-cmp
.
Yup, I have the nvim_lsp-source :/ Are they only not listed with that one, or does any other source do it?
from cmp_luasnip.
It is always on. The cmp list refreshes as I type.
I have these sources. If only luasnip
, buffer
and path
are active --> no problem. If I activate tmux
and/or nvim_lsp
--> problem.
from cmp_luasnip.
Oh does the order of the sources make a difference?
from cmp_luasnip.
No, that does not matter. I tried a couple of variations.
But what I have noticed again is that the list of suggestions is populated with the postfix snippets for a blink of an eye and then get overridden with the suggestions from other sources.
from cmp_luasnip.
May have something to do with keyword_pattern?
For me, postsnip completion worked for vim, while could not work for cpp.
from cmp_luasnip.
Maybe, but it sounds a bit more complicated then that (source and filetype affect postfix snippets showing up, while keyword pattern stays the same the entire time)
from cmp_luasnip.
Related Issues (20)
- No longer directly access `ls.snippets` HOT 3
- Keep getting sporadic errors (may be related to packer.nvim?) HOT 7
- attempt to index local 'snip' (a nil value) HOT 7
- Help wanted: Treesitter highlight lost after enabling cmp_luasnip HOT 4
- Plugin license HOT 5
- getting this error when autocompleting HOT 6
- Choice Node Integration HOT 8
- Create tag when version requirement changes HOT 1
- Is there any ways to remove `~` in snippet completion window? HOT 3
- Sources appear in `LuaSnipListAvailable` but not in cmp suggestions list HOT 10
- Filter snippets by condition HOT 3
- Neovim freezing when pressing Tab HOT 3
- Neovim freezing
- Can't install plugin HOT 2
- module 'cmp' not found HOT 4
- Jump to placeholders in snippet HOT 2
- Respect `trigEngine`. HOT 1
- How to trigger expand on <C-n>? HOT 4
- Prevent putting the same information twice in documentation HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cmp_luasnip.