Comments (7)
The correct way to disable this would be to not load the operators
preset and configure operators manually:
{
plugins = {
-- ...
presets = {
operators = false
-- ..
},
},
-- add operators that will trigger motion and text object completion
-- to enable all native operators, set the preset / operators plugin above
operators = {
d = "Delete",
c = "Change",
y = "Yank (copy)",
["g~"] = "Toggle case",
["gu"] = "Lowercase",
["gU"] = "Uppercase",
[">"] = "Indent right",
["<lt>"] = "Indent left",
["zf"] = "Create fold",
["!"] = "Filter though external program",
-- ["v"] = "Visual Character Mode",
gc = "Comments"
},
}
Although, this seems a bit verbose to just disable one operator. I'll see if I can come up with an easier way to do this.
from which-key.nvim.
I think I'll just add some proper documentation on how to set up operators, motions and text objects and how the preset works in regards to that. You can leave it open for now :)
from which-key.nvim.
you need to specify a mode. i think that should fix it.
so wk.register({['v'] = 'which_key_ignore'}, {mode = 'n'})
and wk.register({['v'] = 'which_key_ignore'}, {mode = 'v'})
from which-key.nvim.
nevermind. i'm getting this error after timeoutlen if i just press v
once in normal mode:
from which-key.nvim.
Strange, I just placed it and it didn't give errors, however instead of showing +Visual Character Mode
, it shows +which_key_ignore
🤔
Maybe it's not possible to disable triggering WhichKey in visual mode (for now), although it's not something that is very annoying
from which-key.nvim.
Thank you very much, it works great 😃
Should I close the issue or will it be closed when making changes?
from which-key.nvim.
Understood, thank you very much again 🙂
from which-key.nvim.
Related Issues (20)
- bug: Mapping a function, concatenates the compile commandd with the result.
- feature: Disable which-key UI HOT 2
- feature: Configuration option to override the usage of timeoutlen
- feature: Group descriptions
- bug: Command mode prompt doesn't show until user types, when mapping opens command mode HOT 2
- feature: Add keymap statistic.
- bug: which-key errors out when pressing wrong key combo in Command Line buffer mode HOT 4
- bug: module 'which-key' not found (Lazy.nvim) after registering maps
- feature: Peek buffers like registers
- feature: Make menu items clickable
- bug: vim.on_key binded function always receive <80><fd>* characters when which-key setup.
- bug: can't disable plugins.presets.z
- feature: Manual trigger of which-key HOT 2
- bug: Mapping vim.cmd functions with arguments will run the function when nvim starts HOT 2
- feature: Ability to highlight letters inside the description
- bug/feature: partial mapping (aliases) don't work as expected HOT 2
- bug: with OSC-52 enabled, which-key doesn't work correctly with registers
- bug: statusline goes away when `cmdheight=0` and `laststatus=3` on latest 0.10 nightly
- bug: Crash on VimEnter when using `mapleader = "<C-Space>"` and setting a mapping with `<C-Space>` instead of `<Leader>` (or defining a group) HOT 1
- bug: cmdheight=0 causes inconsistent behavior between `:` and `;` with whichkey mapping
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 which-key.nvim.