From 7fc019310ba179788193adbc76bf19b97804ae55 Mon Sep 17 00:00:00 2001 From: Marcel Schneider Date: Fri, 27 Jan 2017 08:46:00 +0100 Subject: [PATCH] Add proper handling of go template files --- vim/neosnippets/go.snip | 7 +++++++ vimrc.symlink | 15 +++++++++++---- zsh/custom.zsh | 2 ++ 3 files changed, 20 insertions(+), 4 deletions(-) diff --git a/vim/neosnippets/go.snip b/vim/neosnippets/go.snip index 0405b70..32764a3 100644 --- a/vim/neosnippets/go.snip +++ b/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} + } diff --git a/vimrc.symlink b/vimrc.symlink index 5b16c05..c01439f 100644 --- a/vimrc.symlink +++ b/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' diff --git a/zsh/custom.zsh b/zsh/custom.zsh index 5c54e76..ade3369 100644 --- a/zsh/custom.zsh +++ b/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