From e80a8874accd45cac90616a7b5faa49c5a68e6b9 Mon Sep 17 00:00:00 2001 From: traxys Date: Fri, 19 Jul 2024 19:55:15 +0200 Subject: [PATCH] docs: Add a section of *Package options Documents the fix for #1282 Closes #1282 --- docs/user-guide/faq.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/user-guide/faq.md b/docs/user-guide/faq.md index 46a38ed4..a9f94206 100644 --- a/docs/user-guide/faq.md +++ b/docs/user-guide/faq.md @@ -87,3 +87,11 @@ keymaps = [ [`map`]: https://nixos.org/manual/nix/stable/language/builtins#builtins-map [`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.