Git Product home page Git Product logo

Comments (9)

tsyroid avatar tsyroid commented on August 26, 2024 2

from legendary.nvim.

tsyroid avatar tsyroid commented on August 26, 2024 1

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.

mrjones2014 avatar mrjones2014 commented on August 26, 2024

tagging @tsyroid for input :)

from legendary.nvim.

mrjones2014 avatar mrjones2014 commented on August 26, 2024

Reopening as the README.md could still use some work.

from legendary.nvim.

tsyroid avatar tsyroid commented on August 26, 2024

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.

mrjones2014 avatar mrjones2014 commented on August 26, 2024

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.

tsyroid avatar tsyroid commented on August 26, 2024

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.

tsyroid avatar tsyroid commented on August 26, 2024

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.

mrjones2014 avatar mrjones2014 commented on August 26, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.