Added completion options for texlab

This commit is contained in:
isaacST08 2025-01-26 19:31:45 -07:00
commit e518c8e629

View file

@ -2,7 +2,6 @@
# - Add Texlab LSP settings: # - Add Texlab LSP settings:
# - chktex # - chktex
# - symbols # - symbols
# - completion
# - inlayHints # - inlayHints
# - experimental # - 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 { formatterLineLength = mkOption {
type = ints.positive; type = ints.positive;
default = 80; default = 80;
@ -213,6 +224,10 @@ in {
replacement = texlabCfg.latexindent.replacement; replacement = texlabCfg.latexindent.replacement;
}; };
} }
# -- Completion --
// {
completion.matcher = texlabCfg.completion.matcher;
}
# -- Forward Search -- # -- Forward Search --
// ( // (
if texlabCfg.forwardSearch.enable if texlabCfg.forwardSearch.enable