docs: Add a section of *Package options

Documents the fix for #1282

Closes #1282
This commit is contained in:
traxys 2024-07-19 19:55:15 +02:00
parent 8a4dc239d6
commit e80a8874ac

View file

@ -87,3 +87,11 @@ keymaps = [
[`map`]: https://nixos.org/manual/nix/stable/language/builtins#builtins-map [`map`]: https://nixos.org/manual/nix/stable/language/builtins#builtins-map
[`keymaps`]: ../keymaps [`keymaps`]: ../keymaps
## How to use system provided binaries instead of nixvim provided ones
There are a number of plugins that install extra packages using `nix`, but this can cause issues.
For example enabling `plugins.treesitter` could add `gcc` to the PATH of neovim, and this could break workflows that rely on the system provided compiler.
Most plugins that install packages also provide a `xxxPackage` option that can be set to `null` to skip the installation of the package.
For example `plugin.treesitter` provides the `gccPackage` option.