spacevim/autoload/SpaceVim/layers/lang/extra.vim

45 lines
1.5 KiB
VimL
Raw Normal View History

2024-08-21 14:17:26 +08:00
"=============================================================================
" extra.vim --- lang#extra layer for SpaceVim
" Copyright (c) 2016-2023 Wang Shidong & Contributors
" Author: Wang Shidong < wsdjeg@outlook.com >
" URL: https://spacevim.org
" License: GPLv3
"=============================================================================
""
" @section lang#extra, layers-lang-extra
" @parentsection layers
" @subsection Intro
"
" The lang#extra layer provides syntax highlighting, indent for extra
" programming language. includes:
"
" 1. pug
"
" digitaltoad/vim-pug syntax highlighting and indent
"
" 2. i3config
"
" PotatoesMaster/i3-vim-syntax syntax highlighting for i3 config
"
" 3. irssi config
"
" isundil/vim-irssi-syntax syntax highlighting for irssi config
function! SpaceVim#layers#lang#extra#plugins() abort
let plugins = [
\ ['digitaltoad/vim-pug', { 'on_ft' : ['pug', 'jade']}],
\ ['juvenn/mustache.vim', { 'on_ft' : ['mustache']}],
\ ['PotatoesMaster/i3-vim-syntax', { 'on_ft' : 'i3'}],
\ ['isundil/vim-irssi-syntax', { 'on_ft' : 'irssi'}],
\ ['vimperator/vimperator.vim', { 'on_ft' : 'vimperator'}],
\ ['peterhoeg/vim-qml', { 'on_ft' : 'qml'}],
\ ]
return plugins
endfunction
function! SpaceVim#layers#lang#extra#health() abort
call SpaceVim#layers#lang#extra#plugins()
return 1
endfunction