Last active
August 1, 2018 20:41
-
-
Save illotum/ae87de1033c9ad33e6e2ad77e112b87c to your computer and use it in GitHub Desktop.
go#complete#GetInfo()
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
scriptencoding utf-8 | |
call plug#begin('~/.config/nvim/plugged') | |
Plug 'fatih/vim-go', { 'for': 'go', 'do': ':GoUpdateBinaries'} | |
call plug#end() | |
set laststatus=2 | |
set statusline= | |
set statusline+=\ %{go#statusline#Show()} | |
set statusline+=\ %{go#complete#GetInfo()} | |
" set statusline+=\ %{GoStatus()} | |
au FileType go set fdm=syntax | |
let g:go_highlight_functions = 0 | |
let g:go_highlight_methods = 0 | |
let g:go_highlight_structs = 0 | |
let g:go_highlight_operators = 0 | |
let g:go_highlight_build_constraints = 0 | |
let g:go_highlight_trailing_whitespace_error = 1 | |
let g:go_echo_command_info = 0 | |
let g:go_echo_go_info = 0 | |
let g:go_auto_type_info = 0 | |
let g:go_fmt_fail_silently = 1 | |
let g:go_fmt_command = "goimports" | |
let g:go_list_type = "quickfix" | |
let g:go_info_mode = 'guru' | |
let g:go_fmt_experimental = 1 | |
let g:go_def_mapping_enabled = 1 | |
let g:go_def_reuse_buffer = 1 | |
function! GoStatus() | |
let l:status = exists('*go#statusline#Show') ? go#statusline#Show() : '' | |
let l:info = exists('*go#complete#GetInfo') ? go#complete#GetInfo() : '' | |
return printf('%s %s', l:status, l:info) | |
endfunction |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment