mirror of
https://github.com/hanzoai/hanzo.vim.git
synced 2026-11-09 15:19:11 +00:00
11 lines
364 B
VimL
11 lines
364 B
VimL
" Author: w0rp <[email protected]>
|
|
" Description: Pre-processing rules for Go files.
|
|
|
|
function! neural#pre_process#go#Process(buffer, input) abort
|
|
let l:has_package = search('^package ', 'wnc') != 0
|
|
|
|
let a:input.prompt = 'Write golang code. '
|
|
\ . (l:has_package ? 'Do not write package main or main func. ' : '')
|
|
\ . a:input.prompt
|
|
endfunction
|