diff --git a/autoload/SpaceVim/layers/lang/nix.vim b/autoload/SpaceVim/layers/lang/nix.vim new file mode 100644 index 000000000..a3e75c1a4 --- /dev/null +++ b/autoload/SpaceVim/layers/lang/nix.vim @@ -0,0 +1,24 @@ +"============================================================================= +" nix.vim --- nix language support for SpaceVim +" Copyright (c) 2016-2019 Wang Shidong & Contributors +" Author: Ben Gamari +" URL: https://spacevim.org +" License: GPLv3 +"============================================================================= + +"" +" @section lang#nix, layer-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 + diff --git a/docs/layers/lang/nix.md b/docs/layers/lang/nix.md new file mode 100644 index 000000000..3c31038d0 --- /dev/null +++ b/docs/layers/lang/nix.md @@ -0,0 +1,33 @@ +--- +title: "SpaceVim lang#nix layer" +description: "This layer adds Nix language support to SpaceVim." +--- + +# [Available Layers](../../) >> lang#nix + + + +- [Description](#description) +- [Features](#features) +- [Install](#install) +- [Key bindings](#key-bindings) + + + +## Description + +This layer adds [Nix](https://nixos.org/nix/manual/) language support to SpaceVim. + +## Features + +- syntax highlighting + +## Install + +To use this configuration layer, update custom configuration file with: + +```toml +[[layers]] + name = "lang#nix" +``` +