Skip to content

Commit

Permalink
Further Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacST08 committed Jan 30, 2025
1 parent 650775e commit 00c3568
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions modules/plugins/languages/tex/lsp/texlab.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
}: let
inherit (lib.options) mkOption;
inherit (lib.modules) mkIf mkMerge;
inherit (lib.types) listOf package str attrs ints enum either path nullOr submodule;
inherit (lib.types) attrs either enum ints listOf nullOr package path str submodule;
inherit (lib.nvim.config) mkBool;
inherit (builtins) isString map;

Expand Down Expand Up @@ -50,7 +50,12 @@ in {
};

completion.matcher = mkOption {
type = enum ["fuzzy" "fuzzy-ignore-case" "prefix" "prefix-ignore-case"];
type = enum [
"fuzzy"
"fuzzy-ignore-case"
"prefix"
"prefix-ignore-case"
];
default = "fuzzy-ignore-case";
description = ''
Modifies the algorithm used to filter the completion items returned to the client. Possibles values are:
Expand Down Expand Up @@ -127,6 +132,7 @@ in {
Hint: Additional commands need to be written without a leading `\` (e. g. `foo` instead of `\foo`).
'';
};

labelDefinitionCommands = mkOption {
type = listOf str;
default = [];
Expand Down Expand Up @@ -281,7 +287,7 @@ in {
};

inlayHints = {
labelDefinitions = mkBool true "When enabled, the server will return inlay hints for `\\label-like` commands.";
labelDefinitions = mkBool true "When enabled, the server will return inlay hints for `\\label`-like commands.";

labelReferences = mkBool true "When enabled, the server will return inlay hints for `\\ref``-like commands.";

Expand Down Expand Up @@ -472,8 +478,8 @@ in {
if texlabCfg.forwardSearch.enable
then {
forwardSearch = {
inherit (texlabCfg.forwardSearch) args;
executable = "${texlabCfg.forwardSearch.package}/bin/${texlabCfg.forwardSearch.executable}";
args = texlabCfg.forwardSearch.args;
};
}
else {}
Expand Down

0 comments on commit 00c3568

Please sign in to comment.