diff options
| -rw-r--r-- | bundle/insert-layout/plugin/insert_layout.vim | 7 | 
1 files changed, 5 insertions, 2 deletions
| diff --git a/bundle/insert-layout/plugin/insert_layout.vim b/bundle/insert-layout/plugin/insert_layout.vim index 5ca3d7b..2600da1 100644 --- a/bundle/insert-layout/plugin/insert_layout.vim +++ b/bundle/insert-layout/plugin/insert_layout.vim @@ -77,8 +77,11 @@ def InsertLayoutOn(layout: string): void  	])  enddef -# TODO: Add layout completion -command! -nargs=1 InsertLayout InsertLayoutOn(<q-args>) +def Complete(arg_lead: string, cmd_line: string, cursor_pos: number): string +	return join(keys(layout_names), "\n") +enddef + +command! -nargs=1 -complete=custom,Complete InsertLayout InsertLayoutOn(<q-args>)  command! InsertLayoutOff InsertLayoutOff()  # SetInputLayout(layout_names['fr']) | 
