Herr Bischoff


Neovim: How to Call an Ex Command From Lua

If you need no parameters, this is as simple as:

vim.cmd("Limelight")

When an argument, like a file name, needs to be passed:

function obsess_file(f)
  vim.cmd(string.format("Obsession %s", f))
end