Skip to content

SRGOM/vim-nix

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

83 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vim-nix

Build Status

Support for writing Nix expressions in vim.

Features included so far:

  • Syntax highlighting for Nix
  • Filetype detection for .nix files
  • Automatic indentation
  • NixEdit command: navigate nixpkgs by attribute name

Installation

Plugin managers

The most common plugin managers include vim-plug, NeoBundle, Vundle and pathogen.vim.

With pathogen.vim, just clone this repository inside ~/.vim/bundle:

git clone https://github.com/LnL7/vim-nix.git ~/.vim/bundle/vim-nix

With the other plugin managers, just follow the instructions on the homepage of each plugin. In general, you have to add a line to your ~/.vimrc:

" vim-plug
Plug 'LnL7/vim-nix'
" NeoBundle
NeoBundle 'LnL7/vim-nix'
" Vundle
Plugin 'LnL7/vim-nix'

Manual installation

Copy the contents of each directory in the respective directories inside ~/.vim.

About

Vim configuration files for Nix https://nixos.org/nix

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Vim Script 91.9%
  • Nix 7.6%
  • Shell 0.5%