Comments (14)
Let's make another issue.
from cmp-cmdline.
I have the same problem. After trying various commits, looks like this one broke it: d8738f0
![image](https://private-user-images.githubusercontent.com/1746471/241455780-a30ad837-4eca-434a-9cd8-9a89328e07d2.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTg4ODg3OTIsIm5iZiI6MTcxODg4ODQ5MiwicGF0aCI6Ii8xNzQ2NDcxLzI0MTQ1NTc4MC1hMzBhZDgzNy00ZWNhLTQzNGEtOWNkOC05YTg5MzI4ZTA3ZDIucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDYyMCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA2MjBUMTMwMTMyWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9OGYxZjkxZTg2MGU1MDZkNTFmNjRjNzg5NTdmM2RiNzhhOWU1ZWI2MTM3M2Y5ZmM3ZDBhNWNmMmE3YWE0OTdiZCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.O5b6vD9ckA1ECFwrzsEGhgigBT18GA8OtaqBICWXAWs)
from cmp-cmdline.
I've got same problem.
from cmp-cmdline.
@uga-rosa @hrsh7th Any chance we can revert d8738f0 to fix this issue?
from cmp-cmdline.
What makes it VARIABLE is that it is defined as such.
cmp-cmdline/lua/cmp_cmdline/init.lua
Line 72 in 5af1bb7
What does this revert mean? The number that comes right after the
:
represents a range, and it would be correct to line up a command that can take a range (:h :range
).from cmp-cmdline.
I goto line all the time with :150
as an example, which used to work fine, but now creates a very incorrect completion list like you can see above. Perhaps reverting isnt the right solution, but that commit did break something (as seen in the images above). Note the first image too, where it happens with non-number prefixes. I've pinned my plugin to the commit prior to this, but would prefer not to do that, if there is an appropriate fix.
from cmp-cmdline.
It is true that there are some commands out there that do not allow range, but it is correct in itself that the command is completed with :{number}
. For example, :1w
is a formal command.
And isn't this issue a report that the kind is variable
? I explained in my earlier reply that that is the spec.
from cmp-cmdline.
Perhaps there is a separate underlying issue. I don't know the codebase, and i dont know what the right fix would be. All i know is that its basically unusable in its current form, and i had only found the commit where the issue started occurring.
from cmp-cmdline.
I have no idea what you think the problem is, or how reverting back to before that commit will fix it. I can't reply any further if you don't explain it to me in detail from scratch. You and I do not share the same premise.
from cmp-cmdline.
Here's how it worked before d8738f0:
typing just :150
shows no completions yet:
then when you type another character, it starts to complete:
but now typing just :150
shows a huge list:
while I understand that the large list in the second technically is correct in that its showing every possible completion, I would argue that the previous behavior was more useful. Similarly, if i just type :
it doesn't show me everything i can complete with yet, it waits until i have one character to start completing. The way numbers complete now, feels equivalent to just showing me every possible command right off the bat. At least I think having the option to complete using the old behavior should be made available.
from cmp-cmdline.
ah, i think my issue is different that the one from the original poster (when i originally thought it was the same). I can move it to its own issue, though i don't think i can move the discussion.
from cmp-cmdline.
I can no longer reproduce this and assume a recent update must be responsible for the fix.
from cmp-cmdline.
The original issue is back now that I've updated to commit 8ee981b
from cmp-cmdline.
Please create new issue.
The Variable type
issue is not a valid issue.
from cmp-cmdline.
Related Issues (20)
- Error when calling `vim.fn.getcompletion()` for cmdline has unfinished regex patterns
- FR: extends command items that not really exists HOT 1
- Problem in latex files
- Feature request: lua LSP autocompletion on `cmp-cmdline`
- Respect wildignore when completing files
- Can't cycle through history with Ctrl-N and Ctrl-P in command-line mode HOT 10
- Ignore :w !sudo HOT 2
- Can you hide source? HOT 1
- cmp-cmdline causes Neovim to freeze when using ! in command mode HOT 3
- Completion for path with spaces failing
- Error detected while processing TextChangedI Autocommands for "*": HOT 2
- Not consistent { autocomplete = false } HOT 1
- Wildcard not substituted properly when using regex in :find command HOT 1
- Next/previous works for command and search completion, but not in substitute command HOT 4
- Abort nvim when using `:tag` HOT 1
- The cmp view is not close when enter cmdwin. HOT 1
- first result auto-selected, but it doesn't search for the text in that result until I move selection down and back up again HOT 4
- ...e/pc/.local/share/nvim/lazy/nvim-cmp/lua/cmp/view.lua:102: attempt to call local 'fn' (a table value) HOT 1
- Numeric completion completes all possibilities when previously it did not 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-cmdline.