A Vim plugin to complete a left-hand side from given expression for Go.
- Install go-expr-completion first.
- Install this plugin (e.g. via vim-plug.
Plug '110y/vim-go-expr-completion', {'branch': 'master'}
For example, set a nnoremap like below:
autocmd vimrc FileType go nnoremap <silent> ge :<C-u>silent call go#expr#complete()<CR>
And navigate your cursor to the arbitrary expression, type ge
in normal mode, and then this plugin completes the left-hand side for given expression (and if err...
if necessary).