lazy.nvim
uses Github to install and
manage plugins. For example, if we want to install the todo-comments plugin we can change the entry plugins
in better-vim.lua
:
username/repository
to the plugin manager.
Usually, the installation instructions of the plugin show how to install the plugin using lazy.nvim and other package managers. If lazy.nvim
is not present, the installation via Packer
is pretty simmilar, with some differences that you can see here.
If the plugin has some dependencies, you can use the dependencies
entry in the plugin table
:
config
in the plugin table
:
.setup
method is a common way to configure plugins in Vim from Lua
. If .setup
is the only function you need to call to setup your plugin, and/or pass some properties to it, instead of creating a new function, requiring the plugin and calling the .setup
method, you can just use the entry opts
instead:
.lua
file.:Lazy
π
:Lazy
interface and press Shift + S
.
plugins
entry in better-vim.lua
, reopen neovim and run this command inside Neovim:
:Lazy
to open Lazy interface, then press Shift + X
, or just type :Lazy clean
.