nvim-lua-guide
plenary.nvim
Our great sponsors
nvim-lua-guide | plenary.nvim | |
---|---|---|
152 | 58 | |
4,992 | 2,346 | |
- | 6.1% | |
6.3 | 7.3 | |
over 1 year ago | 10 days ago | |
sed | Lua | |
- | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
nvim-lua-guide
-
Any guide to start writing plugins?
Nvim Lua guide
- I'm fairly new to Neovim, and I want to configure my neovim setup.
-
Advice/Resources for creating/debugging a Neovim Plugin?
My main struggles beyond a simple problem are just the inability to find a way to easily debug things and the general process for setting up a plugin. I mostly work with Python/Jupyter, some C and Lua/Bash scripts, and usually you can either write tests/print debug for smaller scale things or get some stack trace if you have an error. With Neovim development, it just feels like there's nothing more besides update plugin, try on neovim, fail, bash head against wall, and repeat, and that doesn't quite seem efficient or correct - I'm sure there's something out there that should make the process easier. I tried looking online but I haven't found many that really fit my needs (most of the resources here seem more targeted towards creating your own init.lua, and Luadev plugin's commands are all broken (:Luadev-RunLine and any other command keeps telling me I got some trailing space). I'm really just looking to see how to make a snippet library, but there doesn't seem to be much that helps me. If someone could let me know how they debug their plugin or point me to any external resources, please let me know!
-
[help] use neovim to edit files at remote - server?
I have no guidance for the first point. For the second, checkout the neovim lua guide or : lua-guide
- Is there a vim/neovim equivalent to something like "Mastering Emacs"?
- [Neovim] Puis-je obtenir un guide sur la façon d’installer Packer pour les nuls absolus ?
- New to NeoVim, looking to learn
- Where to learn about Neovim and it's plugins? (Deeply)
-
Where would be a good place to start trying to learn lua with no previous programming experience. Trying to learn it as it’s the main language used in a project I’m apart of and want to help out
A quick google search turned up this codeacademy class on learning to program in Javascript. I didn't vet the whole thing, but it appears to assume you know nothing, which is what you need. If you go through that, you can then consume one of the resources that /u/luascriptdev post to equate that back to Lua. Again, the concepts translate.
- how to understand lua config
plenary.nvim
-
How To Create An UI Menu In Neovim
we can create a function to open a pop up menu using plenary.popup like this, you need to install neovim plenary if you don't already have it https://github.com/nvim-lua/plenary.nvim
-
How can I run a vim.cmd asynchronously?
If you are really interested in doing this yourself with loop, you should take a look at either plenary.job or netman.shell (I made the latter) as both are very well documented.
- Async module in Lua for Nvim
-
How to send curl requests without plugin dependency and read the result all in Lua?
I feel this :( That said, alot of plugins rely on plenary.nvim. Its up to you if you determine this is "non-essential" or not. It will almost certainly be available for you to use already.
-
nvim-http: A simple yet modern HTTP client for neovim
The big reason I ask is that reaching out to an external python shell to run commands (disregard the fact that its python running) is going to be much slower than using the in built lua JIT interpreter. Additionally, plenary has a built in curl function so you don't have to "reinvent the wheel".
- Does there exist any simple Lua syntax to extend tables?
-
Testing my config?
There is also test harness in nvim-lua/plenary.nvim with a slightly different design, but still usable of course.
-
How to write `pretty_print`ed json data into a json file?
I am simply using busted or more specifically vusted which is a wrapper around busted for Neovim. It should be quite straightforward to learn the basics, I would say you mostly need to know these functions: describe, it (these are used to structure your test cases) and assert.are_same (to check for table equality). Some people are also using plenary which is also based on busted.
-
Neovim Lua Nix plugin template
It's based on nvim-lua-plugin-template, but uses Nix flakes to run plenary.nvim tests.
-
Sympy + Luasnip + Vimtex
Plenary plugin for Nvim
What are some alternatives?
kickstart.nvim - A launch point for your personal nvim configuration
async-await.lua - Write async function more like javascript async/await
packer.nvim - A use-package inspired plugin manager for Neovim. Uses native packages, supports Luarocks dependencies, written in Lua, allows for expressive config
nvim-reload - Plugin to easily reload your Neovim config
vim-test - Run your tests at the speed of thought
telescope.nvim - Find, Filter, Preview, Pick. All lua, all the time.
tree-sitter-svelte - Tree sitter grammar for Svelte
nvim-lua
which-key.nvim - 💥 Create key bindings that stick. WhichKey is a lua plugin for Neovim 0.5 that displays a popup with possible keybindings of the command you started typing.
telescope-fzf-native.nvim - FZF sorter for telescope written in c
telescope-file-browser.nvim - File Browser extension for telescope.nvim
vim-clap - :clap: Modern performant fuzzy picker, tree-sitter highlighting, and more, for both Vim and NeoVim