Neovim setup#

An excellent lua crash course for Neovim is TJ’s YouTube video “Everything You Need To Start Writing Lua”.

In Neovim, the lua scripting API consists of 3 layers

  1. The “Vim API”, inherited from Vim.

    These are accessed through vim.cmd and vim.fn respectively.

  1. The Nvim API written in C for use in remote plugins and GUIs.

    These are accessed through vim.api.

  1. The “Lua API” written in and specifically for Lua. These are any other functions accessible through vim.* not mentioned already. See lua-stdlib for more.

Hello