fix: Use directly lua function for command (#38)

This commit is contained in:
danymat
2022-01-11 15:23:47 +01:00
parent 50dce18a81
commit ea5a7e5134

View File

@@ -169,7 +169,7 @@ function neogen.generate_command()
endfunction
]])
vim.api.nvim_command(
'command! -nargs=? -complete=customlist,s:match_commands -range -bar Neogen lua require("neogen").generate({ type = <q-args>})'
'command! -nargs=? -complete=customlist,v:lua.neogen.match_commands -range -bar Neogen lua require("neogen").generate({ type = <q-args>})'
)
end