Comments (3)
Replace command
with cmd
.:
{
description = "...:",
command = "...",
...
}
is replaced by
{
description = "...:",
cmd = "<CMD>...<CR>",
...
}
Using cmd
gives you the benefit of using a Lua function or a key sequence as a command. For now, you can still use command
without breaking the config, but the support for command
may be completely removed in the next few updates.
from commander.nvim.
Many keywords and constants are shortened to make command_center
less verbose to use. Specifically:
-
we used to specify a command to be added to
command_center
like this:{ description = "...", command = "...", keybindings = { ... }, category = "...", mode = ... }
And now you can also add them like this:
{ desc = "...", cmd = "...", keys = { ... }, category = "...", mode = ... }
-
command_center.mode
changed from this:mode = { ADD_ONLY = 1, REGISTER_ONLY = 2, ADD_AND_REGISTER = 3, }
to this:
mode = { ADD = 1, SET = 2, AND_SET = 3, }
from commander.nvim.
The format for configuration has changed! Please refer to the README.md
for details. Notes that if the passed-in user config is in incorrect format, the user config is ignored entirely.
If you don't wish to migrate to 0.2, you can use the tag 0.1
to stay in the old version.
from commander.nvim.
Related Issues (20)
- Filtering at time of calling HOT 3
- Favour descriptions in the filtering
- FR: an option that allows users to have their mappings automatically registered with which-key HOT 9
- Reload on config source HOT 7
- Error if nothing was selected HOT 1
- after update command list order is not preserved HOT 3
- [Bug] Plugin broken after last update HOT 11
- [FeatReq] Different cmd per mode - like keybindings HOT 1
- After update cannot set keybinding mode to terminal HOT 2
- On each new nvim session the commands are shown in random order HOT 7
- [question] how to use themes? HOT 1
- keymap modes missing
- lazy.nvim support to register commands with their plugin spec definition HOT 2
- Error requiring plugin: module 'commander.nvim' not found HOT 1
- Requests: ascedent order and remove current CommanderItems HOT 1
- I don't think this plugin is needed HOT 2
- Encountering errors when using minimal examples HOT 1
- Set telescope width HOT 3
- [Bug] <cmd>Telescope commander<cr> does not trigger the original command, but instead triggers the most recent command. HOT 2
- Minor documentation issue: missing `command_center` tag
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 commander.nvim.