New answers tagged

0

Simply use vim.api.nvim_exec() (or vim.cmd() if your NeoVim version still doesn't have it) to run Vimscript commands from Lua. vim.api.nvim_exec('language en_US') That should do it.


0

This is works for me: command -range Test lua require('test').test_range(<line1>, <line2>) function test_range(start, end) print(start, end) end


Top 50 recent answers are included