Comments (9)
from legendary.nvim.
Agreed. Like the ideas above. Will be able to provide better feedback on how I see the groups/categories fall in a day or two.
from legendary.nvim.
tagging @tsyroid for input :)
from legendary.nvim.
Reopening as the README.md could still use some work.
from legendary.nvim.
Under heading: Lua Helpers for Creating Mappings
the Lua expressions are evaluated at the time they are bound
This is developer-speak. I'm just an everyday user. Translate please.
"the Lua expressions are evaluated when the mapping expression is called by the user"? or "at the time the mapping expression is first read by nvim"? or something else?
from legendary.nvim.
It would be "the Lua expressions are evaluated at the time the mappings table is first read by nvim".
It has to evaluate in order to create/allocate the table.
Basically you need to give it the function itself by reference so that the function can be called at a later time (when you press the keys specified by the mapping).
from legendary.nvim.
And next paragraph down:
If you need to call a function from a plugin, but do not want the require that the plugin be loaded at the time you define your keymaps (like if you're using Packer to lazy-load plugins), you can use...
If you need to call a function from Legendary [cap? or lower? it's not just a plugin; its this plugin] but don't require the plugin to be loaded when the keymaps are read (for example, if you're using Packer's lazy-loading feature), you can use...
TIP: If you want to tighten your technical (actually, any) writing up, here's one of the simplest tips I can give you. Any time you write anything, mentally scan (or physically search) for the word "that". Take it out. If the sentence still works, leave it out. If it doesn't leave it in. You will be amazed.
from legendary.nvim.
It would be "the Lua expressions are evaluated at the time the mappings table is first read by nvim".
It has to evaluate in order to create/allocate the table.
Basically you need to give it the function itself by reference so that the function can be called at a later time (when you press the keys specified by the mapping).
Good. Tell them (the reader) that.
from legendary.nvim.
hey @tsyroid just wondering if you're working on a PR or if I should start making these changes.
from legendary.nvim.
Related Issues (20)
- [Meta]: Auto-generate configuration documentation
- [Feature]: Repeat most recent HOT 3
- [FEATURE]: Allow starting the finder from a custom root item group HOT 6
- [Bug]: Error after updating to `v2.12.0` HOT 2
- [Bug]: Error in LazyVim 9 HOT 3
- [Feature]: Move lazy.nvim and which-key.nvim integrations to plugin extensions
- [Bug]: which_key config issue - attempt to index field 'which_key' (a nil value) HOT 3
- [Bug]: Latest `lazy.nvim` update throws error HOT 4
- [Feature]: per-mode implementations for functions (funcs) HOT 6
- [Bug]: `which_key.auto_register` setting is not respected. HOT 3
- [Bug]: Lua evaluation fails to show return value if value is boolean `false` HOT 1
- [Bug]: Default col_separator_char leads to visual glitch HOT 1
- [Bug]: Stop working after pressing F1 on popup window HOT 1
- [Bug]: itemgroup filter seems broken. HOT 1
- [Bug]: Not working with mini.pick ui select HOT 1
- [Bug]: select_prompt refuses a string but accept a function HOT 1
- [Meta]: change `funcs` to `functions` in example config HOT 2
- [Feature]: config option to allow entries merge of [keymaps, commands] with [functions]? HOT 2
- [Bug]: Clicking in nvim window with legendary picker open breaks legendary HOT 6
- [Bug]: Description not taken into account with `itemgroup` commands HOT 4
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 legendary.nvim.