mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-11-10 15:35:30 +00:00
Added completion options for texlab
This commit is contained in:
parent
68c3610848
commit
e518c8e629
1 changed files with 16 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue