Comments (6)
You can use ConfirmBehavior.Insert instead of Replace.
from nvim-cmp.
There is no reason. It's may be better to change default value as you said.
The keyword pattern will be chosen as the following step.
-
Source specific
If source specified keyword pattern, the user can't customize it. -
Configuration
You can change bycmp.setup
. -
Default
see config/default.lua
from nvim-cmp.
Thank you, it seems working more like nvim-compe
. What tokens does it use to decide what to replace?
from nvim-cmp.
Sorry. I might not understand what your meaning.
What tokens does it use to decide what to replace?
The each sources can have keyword-pattern
and nvim-cmp will detects replacing range with it.
from nvim-cmp.
The each sources can have keyword-pattern and nvim-cmp will detects replacing range with it.
Is that pattern comes from an LSP server? Or it can be configured per source?
Also, I'm curious, why have you decided to use ConfirmBehavior.Replace
behavior by default? I tried my experiment on VS code, and it seems it works like ConfirmBehavior.Insert
.
from nvim-cmp.
Thanks for explanation!
from nvim-cmp.
Related Issues (20)
- Selection cursor doesn't appear at the top of the autocompletion list for gopls HOT 4
- Please consider not using global variables HOT 4
- Documentation window obstructs suggestions window when suggestions window is too wide. HOT 1
- Fallback actions in `c` mode might be bugged for `Esc` HOT 2
- Goto next group_index ? HOT 1
- Main suggestion gets stuck in buffer, after changing focus to another window
- Speed / lag is hard to troubleshoot ? HOT 1
- Text completion does not include words with UTF-8 characters that take up more that a single byte HOT 1
- Tailwind CSS autocompletion isn't working
- TailwindCSS performance issues HOT 11
- [Deprecation] Neovim 0.10 warns with `vim.lsp.util.parse_snippet() is deprecated. :help deprecated` HOT 5
- some cmp items in a bundle of same items from different source are lost , with keyword become more HOT 1
- Crash plugin while navigate in menu snippets LuaSnip (nvim-cmp/lua/cmp/utils/str.lua:81: bad argument #1 to byte (string expected, got table) HOT 3
- Unable to set custom key mappings for command mode autocompletion
- How to disable text suggestion related to language?
- Suggestions disappearing
- [feature] Use in markdown code block. HOT 1
- Adding a file name `1` to the directory, causes any completion to fail.
- Slowdown with large files due to locality map HOT 3
- Error messages when inserting past null character
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 nvim-cmp.