mirror of
https://github.com/nix-community/nixvim.git
synced 2025-08-01 08:34:41 +02:00
docs: emphasise "Plugin default" to match nixpkgs
Nixpkg's "headings" are emphasised in italics ("Default", "Example", "Type", etc). We should match the style.
This commit is contained in:
parent
2c25e77d82
commit
5972abdc34
1 changed files with 1 additions and 1 deletions
|
@ -126,7 +126,7 @@ rec {
|
||||||
# TODO deprecate this behavior so we can properly quote strings
|
# TODO deprecate this behavior so we can properly quote strings
|
||||||
defaultString = if isString default then default else generators.toPretty { } default;
|
defaultString = if isString default then default else generators.toPretty { } default;
|
||||||
defaultDesc =
|
defaultDesc =
|
||||||
"Plugin default:"
|
"_Plugin default:_"
|
||||||
+ (
|
+ (
|
||||||
# Detect whether `default` is multiline or inline:
|
# Detect whether `default` is multiline or inline:
|
||||||
if hasInfix "\n" defaultString then "\n\n```nix\n${defaultString}\n```" else " `${defaultString}`"
|
if hasInfix "\n" defaultString then "\n\n```nix\n${defaultString}\n```" else " `${defaultString}`"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue