aileot / nvim-laurel Goto Github PK
View Code? Open in Web Editor NEW๐ฟ A set of macros for Neovim, highly inspired by Vim script, and Nvim Lua-Vimscript bridge on metatable
License: MIT License
๐ฟ A set of macros for Neovim, highly inspired by Vim script, and Nvim Lua-Vimscript bridge on metatable
License: MIT License
Close #22
api-opts
should only accept the keys that can be directly passed to the corresponding vim.api
.
&vim
indicator is unnecessary as long as callback is string.Items change their order in kv-table, though this unexpected behaviour doesn't matter practically.
^<.+>
sym/list for callbacki know you post how to add it via packer..
but maybe a little bit more introduction would be great
It's simply an overhead for those who don't need to set desc
key.
It's also an effort, even for those who prefer desc
keys to be filled, to remember when nvim-laurel infers descriptions.
^<.+>
sym/list for callbackhi aileot,
https://github.com/folke/lazy.nvim
would be lovely.
you done a huge job :)
that's a lot of macros.
are you working on a big new config?
It might make table lookup faster if rawget
simply ignores metatable.
An implementation:
(fn !. [tbl ...]
"(rawget) but nested lookup in runtime."
(var t tbl)
(each [_ key (ipairs [...])]
(set t `(rawget ,t ,key)))
t)
(fn rawget-vim [_ ...]
"Apply (rawget) to `vim`, e.g., (vim.api.nvim_set_keymap ...) becomes
((rawget (rawget vim :api) :nvim_set_keymap) ...)."
(!. `vim (unpack [...])))
(local vim (setmetatable {} {:__index rawget-vim}))
{: vim}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.