1
0
Fork 0
mirror of https://github.com/LnL7/vim-nix.git synced 2025-12-21 05:23:11 +00:00
Vim configuration files for Nix http://nixos.org/nix
Find a file
Maximilian Bosch 7235c7ce2c
Merge pull request #61 from Ma27/ci-update
ci: remove half of detsys, use lix install action
2025-02-01 21:57:33 +01:00
.github/workflows ci: remove half of detsys, use lix install action 2025-02-01 21:51:15 +01:00
autoload Fix #33 2020-09-21 19:34:14 +08:00
compiler compiler: replace %o with %s in errorformat 2018-08-23 22:16:10 +02:00
ftdetect Detect flake.lock 2021-12-21 14:29:51 -05:00
ftplugin Add b:match_words, fix #50 2023-07-23 16:13:11 +08:00
indent indent: remove alignment of bindings 2018-08-19 01:32:56 +02:00
plugin Fix #33 2020-09-21 19:34:14 +08:00
syntax syntax/nix: autogenerate namespaced builtins from nix __dump-language 2024-02-21 12:04:33 +01:00
test syntax/nix: interpolated paths can span over multiple lines 2023-07-30 14:45:10 +02:00
.gitignore don't highlight inherit scope as an attribute 2016-08-07 16:14:00 +02:00
builtins.sh syntax/nix: autogenerate namespaced builtins from nix __dump-language 2024-02-21 12:04:33 +01:00
default.nix dev env: enable backspace and highlight search results 2023-07-30 13:49:39 +02:00
LICENSE added license 2015-12-10 22:32:44 +01:00
README.md Switch from travis to GHA 2023-07-21 14:34:37 +02:00

vim-nix

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

As of version 8.0 Vim supports packages. Clone this repository inside ~/.vim/pack/all/start:

git clone https://github.com/LnL7/vim-nix.git ~/.vim/pack/all/start/vim-nix

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.