Skip to content

Commit 0216d8e

Browse files
authored
Document new installation option (#9)
Hey team- As of NixOS/nixpkgs#114036, folks will be able to install `stan-vim` from [nixpkgs](https://nixos.org/). I personally use a tool based on nix -- [Home Manager](https://github.com/nix-community/home-manager) -- to manage my vim plugins, which makes it tricky to _also_ use a purpose-built vim package manager or manual installation. This tweak to the README simply documents that new installation option for the small community of other people who manage their vim this way. Thanks for your consideration!
1 parent 9d3b6ec commit 0216d8e

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ A Vim plugin for the [Stan probabilistic programming language](https://mc-stan.o
1414
- [Installation](#installation)
1515
- [Vundle, NeoBundle and VimPlug](#vundle-neobundle-and-vimplug)
1616
- [Pathogen](#pathogen)
17+
- [Home Manager](#home-manager)
1718
- [Manual Installation](#manual-installation)
1819
- [Documentation](#documentation)
1920
- [Additional Screenshots](#additional-screenshots)
@@ -58,6 +59,21 @@ cd ~/.vim/bundle
5859
git clone https://github.com/eigenfoo/stan-vim
5960
```
6061

62+
### Home Manager
63+
64+
Nix users who manage their Vim plugins with Home Manager can grab `stan-vim` from nixpkgs:
65+
66+
```nix
67+
{ pkgs, ... }:
68+
{
69+
# or programs.neovim.plugins
70+
programs.vim.plugins = with pkgs.vimPlugins; [
71+
stan-vim
72+
# ...
73+
];
74+
}
75+
```
76+
6177
### Manual Installation
6278

6379
Copy all files into your `~/.vim` directory.

0 commit comments

Comments
 (0)