-
Notifications
You must be signed in to change notification settings - Fork 399
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
allow wild menu to be above statusline #908
Comments
Why the feature is needed? |
Maybe because the floating window hides the statusline and the OP wants to see the statusline (filename, etc.) |
you can try this patch: diff --git a/lua/cmp/view/wildmenu_entries_view.lua b/lua/cmp/view/wildmenu_entries_view.lua
index 3419164..ce3eeda 100644
--- a/lua/cmp/view/wildmenu_entries_view.lua
+++ b/lua/cmp/view/wildmenu_entries_view.lua
@@ -127,7 +127,7 @@ wildmenu_entries_view.open = function(self, offset, entries)
self.entries_win:open({
relative = 'editor',
style = 'minimal',
- row = vim.o.lines - 2,
+ row = vim.o.lines - 3,
col = 0,
width = vim.o.columns,
height = 1, If this works for you, you can create a pull requests which makes the row offset configurable. |
works for me |
I think the nvim-cmp should not have any view related features except the default float-win menu. But for now, I can accept PR. |
Perhaps you could add a table with which you deep_extend the window options |
Quick note about this: if @hrsh7th - Would it make sense to calculate the row to display the wildmenu on based on |
and make it configurable |
It's make sense. To be honest, I want to remove the wild menu view. |
why do you want to remove it? |
That's because I think it's basically an anti-pattern to absorb the differences in people's preferences in one implementation in one repository. We could have just a single implementation if you're happy with a few settings, such as prettier, but in reality various requests have been submitted regarding the appearance of nvim-cmp. |
Personally, I disagree that it's an anti pattern. My reasoning is that the
average user cannot, or will not, take the extra effort of installing
plugins for his plugins. It becomes much too complicated and highly
fragmented.
There is also the problem of discovery. There is no central way of
informing users of all the various different plugins or sources available
for cmp.
…On Mon, 2 May 2022, 19:31 hrsh7th, ***@***.***> wrote:
That's because I think it's basically an anti-pattern to absorb the
differences in people's preferences in one implementation in one repository.
We could have just a single implementation if you're happy with a few
settings, such as prettier, but in reality various requests have been
submitted regarding the appearance of nvim-cmp.
—
Reply to this email directly, view it on GitHub
<#908 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABFXXCZAXEOTUGZISVDPGNDVH77PTANCNFSM5TSO4POQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
I don't think nvim-cmp does not have any built-in sources is make good ecosystem and it does not make unnecessary effort to the user. For example, you did make |
My point is that we need to have a central place where users can _find_ all
of these plugins.
And we need to better document their use.
The flip side of building cmp to be highly configurable is that users will
encounter more issues down the road, where external plugins misbehave. This
will increase the pressure on cmp maintainers (which should probanly
increase in numbers anyway).
…On Tue, 3 May 2022, 9:02 hrsh7th, ***@***.***> wrote:
I don't think nvim-cmp does not have any built-in sources is make good
ecosystem and it does not make unnecessary effort to the user.
For example, you did make cmo-fuzzy-buffer. it's interesting and might be
useful for some users. This is due to current design.
—
Reply to this email directly, view it on GitHub
<#908 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABFXXC66OG5RNFPJTNR36RLVIC6RDANCNFSM5TSO4POQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
I think distributed design is cut off the maintein cost. I can focus core functionality and stability. |
As you say, you are a single person. You can only do so much. A different approach is to add other maintainers to help alleviate the load. If you look at other nvim plugins, they are mostly single repo plugins, without having plugins of themselves. The only plugin which comes to mind which does have its own plugins is telescope, and you can see the complexity this adds to setting it up. |
I think you can search plugins by https://github.com/topics/nvim-cmp. |
Not sure its off topic; You are talking about changing the core of cmp to make it more customizable, refactoring all of the views (for example) into external plugins. What I am saying is that this will only exacerbate the current problem of cmp users, where it's quite difficult to know which plugins are available and what is the recommended way of using them. |
The sources are already splitted. I think the external view plugins system is nice.
The one(central) plugin repository really solves the problem? |
Nice should not be driving the decision here.
I think that cmp is a really amazing piece of code. Extensibility is also a key part of it. But I think success is starting to show its downsides, where you have a large user base and issues start to creep. I would think about this entire issue from a different perspective. We should ask what is the long term plan for cmp. It started out as a personal project for you @hrsh7th, but I think it is much more than that now. |
tbh I don't care if you move the different view to external repositories |
I know the user base is very huge. I have read key mappings decision(the default key mappings is removed) issues.
Current nvim-cmp seems neovim standard auto completion framework. |
As the developer of telescope.nvim mentioned, I think it's a bad idea to implement features in this repository that I'm not using. They are not maintained and bug reports are difficult to deal with. Also, if we focus on the "general user", I still think the I want nvim-cmp to be extensible enough to have a |
I can understand the user expectation that |
imo your goal shouldn't be to allow users to enable their favorite features via one line config. For the wildmenu I don't care if you move it to a different repository but it something really useful and you should keep it somewhere. |
As the original author of the PR, it's nice to hear :) @hrsh7th, it's your project, you should decide on how to move forward. I would be happy either way. |
would it be possible to allow the wildmenu to be above the statusline?
(open it on a row 1 smaller?)
The text was updated successfully, but these errors were encountered: