Comments (2)
How about this?
cmp.setup.cmdline('/', {
completion = { autocomplete = false },
sources = {
{
name = 'buffer',
option = {
keyword_pattern = [=[[^\v[:blank:]].*]=],
}
}
}
})
from cmp-cmdline.
It seems to show the whole line for which there is a match rather than string itself.
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
- exception when insert in tsx file HOT 1
- Disable search completion for very large file
- The plugin can block Neovim for a long time HOT 3
- Is it possible to have different 'versions' of the `/` command that enable different cmp sources and behaviour?
- init.lua:35: couldn't parse regex HOT 3
- 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.