Skip to content

Commit

Permalink
Add golang related changes
Browse files Browse the repository at this point in the history
  • Loading branch information
n-hachi committed Jun 1, 2020
1 parent b6023c7 commit 509be93
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 7 deletions.
4 changes: 2 additions & 2 deletions init.vim
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ endfunction
call s:source_rc('/options.rc.vim')
call s:source_rc('/mappings.rc.vim')

call dein#add('zchee/nvim-go', {'build': 'make'})

filetype plugin indent on
syntax enable

" call dein#add('zchee/nvim-go', {'build': 'make'})
6 changes: 6 additions & 0 deletions rc/dein.toml
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,9 @@ repo = 'majutsushi/tagbar'

[[plugins]]
repo = 'mhinz/vim-signify'

#[[plugins]]
#repo = 'atozimu/LanguageClient-neovim'

[[plugins]]
repo = 'junegunn/fzf'
3 changes: 3 additions & 0 deletions rc/dein_filetype.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,6 @@ setlocal expandtab
setlocal shiftround
'''

go = '''
let g:go_def_mode = "gopls"
'''
19 changes: 14 additions & 5 deletions rc/dein_lazy.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ hook_source = '''
call deoplete#custom#option({
\ 'auto_complete_delay': 100,
\ 'smart_case': v:true,
\ 'omni_patterns': {
\ 'go': '[^. *\t]\.\w*',
\ 'ruby': '[^. *\t]\.\w*',
\ },
\ })
'''

Expand Down Expand Up @@ -98,12 +102,17 @@ on_source = ['tabular']
[[plugins]]
repo = 'godlygeek/tabular'

#
# Golang
#
[[plugins]]
repo = 'mattn/vim-goimports'
repo = 'fatih/vim-go'
on_ft = ['go']
hook_add = '''
let g:goimports = 1
let g:go_fmt_command = 'goimports'
let g:go_def_mode='gopls'
let g:go_info_mode='gopls'
'''

[[plugins]]
repo = 'deoplete-plugins/deoplete-go'
on_ft = ['go']
build = 'make'

0 comments on commit 509be93

Please sign in to comment.