mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-23 20:20:05 +08:00
Initial commit of lang#nix (#2541)
This commit is contained in:
parent
7c0df8fd32
commit
d727cf5fa0
24
autoload/SpaceVim/layers/lang/nix.vim
Normal file
24
autoload/SpaceVim/layers/lang/nix.vim
Normal file
@ -0,0 +1,24 @@
|
||||
"=============================================================================
|
||||
" nix.vim --- nix language support for SpaceVim
|
||||
" Copyright (c) 2016-2019 Wang Shidong & Contributors
|
||||
" Author: Ben Gamari <ben@smart-cactus.org>
|
||||
" 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
|
||||
|
33
docs/layers/lang/nix.md
Normal file
33
docs/layers/lang/nix.md
Normal file
@ -0,0 +1,33 @@
|
||||
---
|
||||
title: "SpaceVim lang#nix layer"
|
||||
description: "This layer adds Nix language support to SpaceVim."
|
||||
---
|
||||
|
||||
# [Available Layers](../../) >> lang#nix
|
||||
|
||||
<!-- vim-markdown-toc GFM -->
|
||||
|
||||
- [Description](#description)
|
||||
- [Features](#features)
|
||||
- [Install](#install)
|
||||
- [Key bindings](#key-bindings)
|
||||
|
||||
<!-- vim-markdown-toc -->
|
||||
|
||||
## 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"
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user