mirror of https://github.com/ray-x/go.nvim
move ftdetect/ftplugin around; gomod detecting
parent
bd9caf8d0e
commit
3a853d50af
@ -1,17 +0,0 @@
|
|||||||
let s:cpo_save = &cpo
|
|
||||||
set cpo&vim
|
|
||||||
|
|
||||||
au BufRead,BufNewFile *.go setfiletype go
|
|
||||||
au BufRead,BufNewFile *.s setfiletype asm
|
|
||||||
au BufRead,BufNewFile *.tmpl set filetype=gohtmltmpl
|
|
||||||
au BufRead,BufNewFile go.sum set filetype=gosum
|
|
||||||
au BufRead,BufNewFile go.work.sum set filetype=gosum
|
|
||||||
au BufRead,BufNewFile go.work set filetype=gowork
|
|
||||||
|
|
||||||
au! BufRead,BufNewFile *.mod,*.MOD
|
|
||||||
|
|
||||||
|
|
||||||
let &cpo = s:cpo_save
|
|
||||||
unlet s:cpo_save
|
|
||||||
|
|
||||||
" vim: sw=2 ts=2 et
|
|
@ -0,0 +1,16 @@
|
|||||||
|
let s:cpo_save = &cpo
|
||||||
|
set cpo&vim
|
||||||
|
|
||||||
|
let &cpo = s:cpo_save
|
||||||
|
unlet s:cpo_save
|
||||||
|
|
||||||
|
setlocal formatoptions-=t
|
||||||
|
|
||||||
|
setlocal comments=s1:/*,mb:*,ex:*/,://
|
||||||
|
setlocal commentstring=//\ %s
|
||||||
|
|
||||||
|
setlocal noexpandtab
|
||||||
|
|
||||||
|
compiler go
|
||||||
|
|
||||||
|
" vim: sw=2 ts=2 et
|
Loading…
Reference in New Issue