home ~ projects ~ socials

Load A Lua File Module From The Commnand Line In Neovim

I'm not sure if it's really called the command line, but it's the place in nvim where you type stuff.

lua require('example_module')

where example_module is the name of a .lua file in the ~/.config/nvim/lau directory. For example:

~/.config/nvim/lau/example_module.lua

-- end of line --