treewide: replace auto option links with {option} role

This commit is contained in:
Ching Pei Yang 2025-12-11 15:15:58 +01:00
commit da8c682af7
No known key found for this signature in database
GPG key ID: B3841364253DC4C8
16 changed files with 58 additions and 58 deletions

View file

@ -15,7 +15,7 @@ in {
clipboard = {
enable = mkEnableOption ''
clipboard management for Neovim. Users may still choose to manage their
clipboard through [](#opt-vim.options) should they wish to avoid using
clipboard through {option}`vim.options` should they wish to avoid using
this module.
'';

View file

@ -62,7 +62,7 @@ in {
default = "outer";
description = ''
Which context lines to discard if
[](#opt-vim.treesitter.context.setupOpts.max_lines) is exceeded.
{option}`vim.treesitter.context.setupOpts.max_lines` is exceeded.
'';
};

View file

@ -43,7 +43,7 @@
default = ["${pkgs.fd}/bin/fd"];
description = ''
Command to use for finding files. If using an executable from {env}`PATH` then you must
make sure that the package is available in [](#opt-vim.extraPackages).
make sure that the package is available in {option}`vim.extraPackages`.
'';
};

View file

@ -180,7 +180,7 @@ in {
overrides = mkOption {
description = ''
Overrides the default configuration for a notification group defined
in [](#opt-vim.visuals.fidget-nvim.setupOpts.notification.configs).
in {option}`vim.visuals.fidget-nvim.setupOpts.notification.configs`.
If any of the fields are null, the value from the default
configuration is used.

View file

@ -121,7 +121,7 @@
description = ''
Lua code to run after plugin is loaded. This will be wrapped in a function.
If [](#opt-vim.lazy.plugins._name_.setupModule) is provided, the setup will be ran before `after`.
If {option}`vim.lazy.plugins._name_.setupModule` is provided, the setup will be ran before `after`.
'';
};

View file

@ -284,9 +284,9 @@ in {
default = "";
defaultText = literalMD ''
By default, this option will **append** paths in
[](#opt-vim.additionalRuntimePaths)
{option}`vim.additionalRuntimePaths`
to the `runtimepath` and enable the experimental Lua module loader
if [](#opt-vim.enableLuaLoader) is set to true.
if {option}`vim.enableLuaLoader` is set to true.
'';
example = literalExpression "\${builtins.readFile ./my-lua-config-pre.lua}";