in my config of init.lua
,I want to load a luafile
from anywhere or any directory
so : can I source it without function vim.cmd()
vim.cmd('luafile /full/path/to/file.lua')
Vi and Vim Stack Exchange is a question and answer site for people using the vi and Vim families of text editors. It only takes a minute to sign up.
Sign up to join this community
require
function, it works for file in subdirectory fine , but I can't resource for example from home e.g~/test.lua
or/opt/test.lua