Comments (10)
snippets.nvim is super powerful than vim-vsnip because it can be customized by lua.
vim-vsnip has a benefit that it has a vim-vsnip-integ.
If you create a plugin for snippets.nvim that similar to vim-vsnip-integ, it is very useful for some of snippets.nvim users.
from nvim-compe.
It's a hard problem.
I'm now using vim-lamp
with nvim-compe
.
the preview feature implemented in vim-lamp
side.
I thinking now to move preview-feature into nvim-compe but it is hard...
from nvim-compe.
It's a hard problem.
I'm going to look into it.
Also, @hrsh7th it would be great if we can have a feature map for nvim_lsp, that also can answer what completion nvim_lsp features can implemented with nvim-compe. I only know of preview, is there any other?
from nvim-compe.
Sorry. I'm not a native English speaker... So I didn't understand what you want maybe.
completion-nvim
- chain completion
- opt-{in,out} filter algorithm
- document/signature_help preview
- automatic insert
()
- neosnippet/ultisnips support
- more sources than nvim-compe
- more configuable
nvim-compe
- well supported isIncomplete
- well supported trigger/keyword position
- good fuzzy matcher
from nvim-compe.
You're English is great, you understood exactly what I meant.
- chain completion: .... it sounds awesome, not sure if it a priority in your case. I think it makes things more complex for the user, specially
- opt-{in,out} filter algorithm: .... what is that?
- document/signature_help preview: .... very very important
- automatic insert (): .... it didn't actually work for me when testing
completion-nvim
, but it is nonetheless something important - neosnippet/ultisnips support: .... I see a lot of user use ultisnips so I think its important, for me personally I want support for
norcalli/snippets.nvim
if you can give me a tell me of how things work in vim-compe, I can start working on adding
norcalli/snippets.nvim
suppot - more sources than nvim-compe: .... like what?
Is there any other features, specially nvim_lsp specific ?
Specking of nvim-compe:
- can you tell me more about isIncomplete?
- can you tell me more about trigger/keyword position?
- Yes the fuzzy matcher is amazing, even better than what completion-nvim has.
from nvim-compe.
- chain-completion
- I have no plan to implement it.
- opt-in,opt-out filter algorithm
- completion-nvim has
let g:completion_matching_strategy
that makes the ability to customize matching algorithm by the user.
- documentation preview
- I have the plan to add this but it bit hard.
- signature_help preview
- I have no plan to implement it (I think it should be good to implement into lsp-client instead of completion-engine)
- automatic insert
()
- completion-nvim will insert
()
when CompletedItem's kind isfunction
ormethod
.- I have no plan to add it because it is not a Language Server Protocol way.
- But
vim-vsnip
andvim-vsnip-integ
provide similar behavior.
- neosnippet/ultisnips/snippets.nvim support
- I have no plan to add this. sorry.
- I think it should be implemented in separated plugin like vim-vsnip-integ.
- more sources than nvim-compe
- completion-nvim has a lot of sources.
- completion-tags
- completion-tabnine
- completion-treesitter
- etc...
isIncomplete
The Language Server Protocol defines isIncomplete=true/false
for the response of completion.
This can be used to determine whatever the client should send completion requests to each keypress.
completion-nvim has isIncomplete support but nvim-compe handles it better than it (cache/debounce/empty handling etc).
trigger/keyword position
It is hard to explain... (and maybe nvim-compe has a bug related to it)
from nvim-compe.
For 3 and 4 I will open a PR and see what I can do. For 6, I'll use vim-vsnip-integ as an example for creating a snippet source for snippets.nvim. For 7, treesitter sound something I'd love to see supported.
Thanks for clarifying things out
from nvim-compe.
If you can use vim-vsnip
and vim-vsnip-integ
, nvim-compe already has a source for it.
from nvim-compe.
I'd love to use vim-vsnip
and I'm sure it as great as nvim-compe
. But snippet.nvim
has some additional stuff that can be done with lua and I'm sure you've seen some demo or code examples, and that is why I went to use it. I don't know can I do similar stuff with vim-vsnip?
from nvim-compe.
I think this issue purpose isn't clear any more, I''ll rename it and close it
from nvim-compe.
Related Issues (20)
- Breaking undo history after typing certain characters after completion HOT 1
- Can not get LSP Snippet working HOT 1
- relative path completion fail if not stating with './' HOT 1
- [Question] Don't append ? for optional arguments HOT 2
- Add the possibility to hide the completion source. HOT 4
- clangd not hiding suggestions after comma or space HOT 3
- Question/Help: LSP Snippet Support Not Working HOT 1
- [Question] Filter completion items by kind, exclude 'Text' items HOT 1
- Documentation syntax highlighting. HOT 5
- attempt to call field 'stylize_markdown' HOT 2
- Custom labels for completion types HOT 2
- FR/Question: Complete on any key HOT 3
- Documentation doesn't pop in completion in some cases HOT 1
- buffer completion should complete words for hidden buffers. HOT 3
- problem with vim-rsi pluggin -- <C-e> HOT 3
- Auto-import doesnโt work with a bunch of LSPs HOT 1
- Buffer Source Completion: diacritic characters are ignored HOT 2
- Triggered in command mode. HOT 2
- Integrate copilot.vim? HOT 2
- No fuzzy completion for [emoji] HOT 1
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 nvim-compe.