Browse Source

Add proper handling of go template files

coc
Schneider 7 years ago
parent
commit
7fc019310b
  1. 7
      vim/neosnippets/go.snip
  2. 15
      vimrc.symlink
  3. 2
      zsh/custom.zsh

7
vim/neosnippets/go.snip

@ -10,3 +10,10 @@ options head
func ${1}(w http.ResponseWriter, r *http.Request) {
${2}
}
snippet method
abbr meth
options head
func (${1}) ${2}(${3}) ${4}{
${5}
}

15
vimrc.symlink

@ -37,9 +37,9 @@ Plug 'tpope/vim-repeat'
Plug 'vim-syntastic/syntastic'
" html / templates
Plug 'mattn/emmet-vim', { 'for': 'html' } " emmet support for vim - easily create markdup wth CSS-like syntax
Plug 'gregsexton/MatchTag', { 'for': 'html' } " match tags in html, similar to paren support
Plug 'othree/html5.vim', { 'for': 'html' } " html5 support
Plug 'mattn/emmet-vim', { 'for': ['html', 'php', 'gohtmltmpl'] } " emmet support for vim - easily create markdup wth CSS-like syntax
Plug 'gregsexton/MatchTag', { 'for': ['html', 'php', 'gohtmltmpl'] } " match tags in html, similar to paren support
Plug 'othree/html5.vim', { 'for': ['html', 'php', 'gohtmltmpl'] } " html5 support
" JavaScript
Plug 'gavocanov/vim-js-indent', { 'for': 'javascript' } " JavaScript indent support
@ -48,7 +48,14 @@ Plug 'othree/yajs.vim', { 'for': 'javascript' } " JavaScript syntax plugin
Plug 'othree/es.next.syntax.vim', { 'for': 'javascript' } " ES6 and beyond syntax
" Go
Plug 'fatih/vim-go', { 'for': 'go' } " go support
Plug 'fatih/vim-go', { 'for': [ 'go', 'html', 'gohtmltmpl' ] } " go support
" LaTeX
Plug 'LaTeX-Box-Team/LaTeX-Box', { 'for': 'tex' }
" Markdown
Plug 'suan/vim-instant-markdown', { 'for': 'markdown' }
Plug 'tpope/vim-markdown', { 'for': 'markdown'}
" Colorschemes
Plug 'altercation/vim-colors-solarized'

2
zsh/custom.zsh

@ -4,5 +4,7 @@ COMPLETION_WAITING_DOTS="true"
export EDITOR="vim"
export goschneider="$HOME/go/src/git.webschneider.org"
source $HOME/.dotfiles/zsh/aliases.zsh
Loading…
Cancel
Save