From e518c8e629d31ac75693c8a53dc6c10e6342dca7 Mon Sep 17 00:00:00 2001 From: isaacST08 Date: Sun, 26 Jan 2025 19:31:45 -0700 Subject: [PATCH] Added completion options for texlab --- modules/plugins/languages/tex/lsp/texlab.nix | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/modules/plugins/languages/tex/lsp/texlab.nix b/modules/plugins/languages/tex/lsp/texlab.nix index 2ed93229..a0173efe 100644 --- a/modules/plugins/languages/tex/lsp/texlab.nix +++ b/modules/plugins/languages/tex/lsp/texlab.nix @@ -2,7 +2,6 @@ # - Add Texlab LSP settings: # - chktex # - symbols -# - completion # - inlayHints # - experimental { @@ -130,6 +129,18 @@ in { }; }; + completion.matcher = mkOption { + type = str; + default = "fuzzy-ignore-case"; + description = '' + Modifies the algorithm used to filter the completion items returned to the client. Possibles values are: + - fuzzy: Fuzzy string matching (case sensitive) + - fuzzy-ignore-case: Fuzzy string matching (case insensitive) + - prefix: Filter out items that do not start with the search text (case sensitive) + - prefix-ignore-case: Filter out items that do not start with the search text (case insensitive) + ''; + }; + formatterLineLength = mkOption { type = ints.positive; default = 80; @@ -213,6 +224,10 @@ in { replacement = texlabCfg.latexindent.replacement; }; } + # -- Completion -- + // { + completion.matcher = texlabCfg.completion.matcher; + } # -- Forward Search -- // ( if texlabCfg.forwardSearch.enable