Comments (3)
Hitting this too at the moment, made me think it was an issue with cmp-path: hrsh7th/cmp-path#68
Temporarily working around this by disabling cmp-cmdline on e
and edit
:
-- Use cmdline & path source for ':' (if you enabled `native_menu`, this won't work anymore).
cmp.setup.cmdline(':', {
mapping = cmp.mapping.preset.cmdline(),
sources = cmp.config.sources({
{ name = 'path' },
{ name = 'cmdline', option = { ignore_cmds = { 'Man', '!', 'e', 'edit'}}}
})
})
from cmp-cmdline.
It is possible to get around blocking calls that take a long time. I wrote a autocompletion plugin (https://github.com/girishji/autosuggest.vim) for cmdline-mode completion in vim9script. I solved this problem by adding a timeout to job_start()
. There are certain completions that are long running (like **
expansion). I check them first in a separate process. I assume similar mechanism can be used in neovim as well.
from cmp-cmdline.
hitting this too.
I would be happy (enough) with the ability to exclude some paths from cmp-path completion as a work-around (happy to file a feature request under cmp-path if desired)
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
- Variable type? HOT 14
- 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.