mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 00:25:42 +02:00
README: add devShell example
This commit is contained in:
parent
02fcb49a03
commit
5c853ff9ff
1 changed files with 19 additions and 1 deletions
20
README.md
20
README.md
|
@ -140,12 +140,30 @@ can use the following:
|
|||
});
|
||||
}
|
||||
```
|
||||
|
||||
</details>
|
||||
|
||||
You can then run neovim using `nix run .# -- <file>`. This can be useful to test
|
||||
config changes easily.
|
||||
|
||||
### With a `devShell`
|
||||
|
||||
You can also use nixvim to define an instance which will only be available inside of a Nix `devShell`:
|
||||
|
||||
<details>
|
||||
<summary>devShell configuration</summary>
|
||||
|
||||
```nix
|
||||
let
|
||||
nvim = nixvim.legacyPackages.x86_64-linux.makeNixvim {
|
||||
plugins.lsp.enable = true;
|
||||
};
|
||||
in pkgs.mkShell {
|
||||
buildInputs = [nvim];
|
||||
};
|
||||
```
|
||||
|
||||
</details>
|
||||
|
||||
### Advanced Usage
|
||||
|
||||
You may want more control over the nixvim modules like:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue