vigemus / tycho.nvim Goto Github PK
View Code? Open in Web Editor NEWAn indirection layer between neovim and idiomatic lua
An indirection layer between neovim and idiomatic lua
Hey!
I'd like to discuss where this should be going eventually, so we can work out how the api should look like and such. I'm not intimately familiar with mappings, but I went through https://neovim.io/doc/user/map.html for some overview. Quite some things.
So, as a first goal I'd define this:
Provide a lua api to the
map
family where{rhs}
is a lua function
If {rhs}
, isn't a lua function, it's already pretty usable from vim.api.nvim_command
. I assume we can limit ourselves to <Cmd>
mappings, because the lua function can easily check for the mode and do nothing if inappropriate. Or is that assuming too much? Am I missing something?
So in it's simplest incarnation, the following should work imho (name of course non-final):
vim.lua_api.lua_map("<F2>", my_lua_function)
Thoughts:
vim.lua_api.buf_lua_map
where you can choose the buffer (default current; maybe that's not great because "" works on the curbuf, so we'd need to change that temporarily).nvim_command
. Same about "Plug".You said something about reuseability, which is why you set up things the way you did. Can you elaborate on that? I did not really understand what you were after.
My pretty limited imagination says that the next step would be to provide something similiar for user commands, but let's take one step after the other :)
I'm archiving this repository to keep the reference and discussion. I couldn't really devote the right time to it and neovim took a really nice path forward with lua support without needing the investments I was willing to make.
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.