Kevin %!s(int64=6) %!d(string=hai) anos
pai
achega
c4b5cccc91
Modificáronse 3 ficheiros con 8 adicións e 0 borrados
  1. 2 0
      nvim/after/ftplugin/go.vim
  2. 4 0
      nvimrc
  3. 2 0
      zshrc

+ 2 - 0
nvim/after/ftplugin/go.vim

@@ -0,0 +1,2 @@
+set listchars=tab:\ \ ,trail:~
+set list

+ 4 - 0
nvimrc

@@ -40,6 +40,7 @@ Plug 'apple/swift', { 'rtp': 'utils/vim' }
 Plug 'https://bitbucket.org/johanneskoester/snakemake.git', {'rtp': 'misc/vim/'}
 Plug 'junegunn/vim-easy-align'
 Plug 'glench/vim-jinja2-syntax'
+Plug 'fatih/vim-go'
 
 " All of your Plugins must be added before the following line
 call plug#end()  " required
@@ -222,4 +223,7 @@ au BufNewFile,BufRead *.rules set syntax=snakemake
 au BufNewFile,BufRead *.snakefile set syntax=snakemake
 au BufNewFile,BufRead *.snake set syntax=snakemake
 
+" golang
+let g:go_fmt_command = "goimports"
+
 source $HOME/.config/nvim/local.vimrc

+ 2 - 0
zshrc

@@ -16,6 +16,8 @@ fi
 
 ### U S E R  C O N F I G ###
 
+export PATH="$HOME/go/bin:$PATH"
+
 # random string function
 random-string()
 {