-
-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: add helpful tips section (#520)
- Loading branch information
Showing
4 changed files
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,6 +11,7 @@ try-it-out.md | |
default-configs.md | ||
installation.md | ||
configuring.md | ||
tips.md | ||
``` | ||
|
||
```{=include=} chapters | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Helpful Tips {#ch-helpful-tips} | ||
|
||
```{=include=} chapters | ||
tips/debugging-nvf.md | ||
tips/offline-docs.md | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Debugging nvf {#sec-debugging-nvf} | ||
|
||
There may be instances where the your Nix configuration evaluates to invalid | ||
Lua, or times when you will be asked to provide your built Lua configuration for | ||
easier debugging by nvf maintainers. nvf provides two helpful utilities out of | ||
the box. | ||
|
||
**nvf-print-config** and **nvf-print-config-path** will be bundled with nvf as | ||
lightweight utilities to help you view or share your built configuration when | ||
necessary. | ||
|
||
To view your configuration with syntax highlighting, you may use the | ||
[bat pager](https://github.com/sharkdp/bat). | ||
|
||
```bash | ||
nvf-print-config | bat --language=lua | ||
``` | ||
|
||
Alternatively, `cat` or `less` may also be used. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Offline Documentation {#sec-offline-documentation} | ||
|
||
[https://notashelf.github.io/nvf/options.html]: https://notashelf.github.io/nvf/options.html | ||
|
||
The manpages provided by nvf contains an offline version of the option search | ||
normally available at [https://notashelf.github.io/nvf/options.html]. You may | ||
use the `man 5 nvf` command to view option documentation from the comfort of | ||
your terminal. | ||
|
||
Note that this is only available for NixOS and Home-Manager module | ||
installations. |