feat(ex_cmds): ranged :lua #27167

:{range}lua executes the specified lines in the current buffer as
Lua code, regardless of its extension or 'filetype'.

Close #27103
This commit is contained in:
luukvbaal
2024-01-27 02:00:50 +01:00
committed by GitHub
parent 0892c080d1
commit c2433589dc
6 changed files with 48 additions and 5 deletions

View File

@@ -1612,7 +1612,7 @@ module.cmds = {
},
{
command = 'lua',
flags = bit.bor(RANGE, EXTRA, NEEDARG, CMDWIN, LOCK_OK),
flags = bit.bor(RANGE, EXTRA, CMDWIN, LOCK_OK),
addr_type = 'ADDR_LINES',
func = 'ex_lua',
},