From c2765ac64b333e6a91ef5baf1b5da71177dc94ac Mon Sep 17 00:00:00 2001 From: Seong Yong-ju Date: Sun, 12 Nov 2017 17:48:15 +0900 Subject: [PATCH] Added zsh support Added zsh support. --- autoload/SpaceVim/layers/lang/sh.vim | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/autoload/SpaceVim/layers/lang/sh.vim b/autoload/SpaceVim/layers/lang/sh.vim index f69a0e8cb..be3b4f1e8 100644 --- a/autoload/SpaceVim/layers/lang/sh.vim +++ b/autoload/SpaceVim/layers/lang/sh.vim @@ -1,6 +1,16 @@ +function! SpaceVim#layers#lang#javascript#plugins() abort + return [ + \ ['chrisbra/vim-zsh', { 'on_ft' : 'zsh' }] + \ ] +endfunction + function! SpaceVim#layers#lang#sh#config() call SpaceVim#layers#edit#add_ft_head_tamplate('sh', \ ['#!/usr/bin/env bash', \ ''] \ ) + call SpaceVim#layers#edit#add_ft_head_tamplate('zsh', [ + \ '#!/usr/bin/env zsh', + \ '' + \ ]) endfunction