From ea5a7e513412136f41e3758f2e13e8a0883a36e2 Mon Sep 17 00:00:00 2001 From: danymat Date: Tue, 11 Jan 2022 15:23:47 +0100 Subject: [PATCH] fix: Use directly lua function for command (#38) --- lua/neogen.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/neogen.lua b/lua/neogen.lua index c870d2e..f45efaf 100644 --- a/lua/neogen.lua +++ b/lua/neogen.lua @@ -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 = })' + 'command! -nargs=? -complete=customlist,v:lua.neogen.match_commands -range -bar Neogen lua require("neogen").generate({ type = })' ) end