1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-03-29 06:12:39 +08:00
2021-09-20 22:16:14 +08:00

31 lines
899 B
VimL

"=============================================================================
" nix.vim --- nix language support for SpaceVim
" Copyright (c) 2016-2021 Wang Shidong & Contributors
" Author: Ben Gamari <ben@smart-cactus.org>
" URL: https://spacevim.org
" License: GPLv3
"=============================================================================
""
" @section lang#nix, layers-lang-nix
" @parentsection layers
" @subsection Intro
" The lang#nix layer provides syntax highlighting for the Nix
" expression language.
function! SpaceVim#layers#lang#nix#plugins() abort
let plugins = []
call add(plugins, ['LnL7/vim-nix', {'on_ft' : ['nix']}])
return plugins
endfunction
function! SpaceVim#layers#lang#nix#config() abort
endfunction
function! SpaceVim#layers#lang#nix#health() abort
call SpaceVim#layers#lang#nix#plugins()
call SpaceVim#layers#lang#nix#config()
return 1
endfunction