nvim-lua-guide icon indicating copy to clipboard operation
nvim-lua-guide copied to clipboard

A guide to using Lua in Neovim

Results 19 nvim-lua-guide issues
Sort by recently updated
recently updated
newest added

It should include these functions: - `vim.api.nvim_set_hl_ns()` - `vim.api.nvim_set_hl()` - Possibly `vim.api.nvim_set_decoration_provider()`?

related: create and link a cheat sheet like [this](https://devhints.io/vimscript) for newcomers. _Originally posted by @matu3ba in https://github.com/nanotee/nvim-lua-guide/issues/7#issuecomment-774737672_

Assume the following snippet be in the init.lua ```lua local opts = { noremap = true, silent = true } local map = vim.api.nvim_set_keymap map('nt', 'j', [[ lua print("not broken!")]],...

It's hard to hard to find working examples of user commands (or even autocommands) that use ranges. It could be helpful to include them in the guide.

It is only not clear to me if `require('myluamodule')` works from `init.vim`.

Hi. I propose to add few words on how to work with LuaJit native feature allowing to call natively declared C functions. Checkout: [FFI Module](https://luajit.org/ext_ffi.html)

Perhaps more accessible. Especially for those who have not used vim and init.vim before, and who want to use init.lua from the start when starting out with neovim.