-
Notifications
You must be signed in to change notification settings - Fork 411
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use floating window for completion menus #224
Conversation
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
a19ccae
to
839c300
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
90c94c3
to
e4a704f
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
bf7930f
to
24116ea
Compare
@hrsh7th Hi. I want to test the feature. What is the fancy menu config? |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
aab0605
to
abdf4b8
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
89335bb
to
988030b
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Amazing job @hrsh7th! Thank you so so much! |
Just curious. Why implement a new custom floating menu when the native completion menu exists? I don't really notice any difference. |
A custom menu allows highlighting and much more fine grained control in general. See screenshots above |
* remove cmp-treesitter * make TAB completion work with new floating menu introduced in hrsh7th/nvim-cmp#224
I feel it's faster now! |
Thanks @hrsh7th I can feel drastic improvements compared to the old one |
Changed in hrsh7th/nvim-cmp#224. This just replaces the `if` condition and `nvim_replace_termcodes`.
😍 @hrsh7th this is crazy!!! well done you just reach something I don't think anyone can match. Congratulations |
This just replaces the `if` condition and `nvim_replace_termcodes`. Changed in hrsh7th/nvim-cmp#224.
With PR hrsh7th/nvim-cmp#224, nvim-cmp uses floating windows instead of the vim-internal pummenu. The previous function to resolve the <Tab> key relied on the `pumvisible` function to check for an open completion window, which is not possible anymore. The new function features an extra branch checking for an open completion window, via `cmp.visible()`..
Tried cmp briefly and it seems the suggestion for |
Changed in hrsh7th/nvim-cmp#224. This just replaces the `if` condition and `nvim_replace_termcodes`.
I don't think it can be completed... (and it will introduce a lot of breaking change.)
TODO
Cache with highlightdo it later...Border supportdo it later...