Skip to content

Commit

Permalink
Add variable for texlab.experimental.labelDefinitionCommands
Browse files Browse the repository at this point in the history
  • Loading branch information
ROCKTAKEY committed Aug 3, 2024
1 parent 30e5ee2 commit 1965ba3
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion lsp-latex.el
Original file line number Diff line number Diff line change
Expand Up @@ -945,6 +945,13 @@ For example, \"cite\" is meet the condition. Note that backslash is not needed."
:type '(repeat string)
:version "3.5.0")

(defcustom lsp-latex-experimental-label-definition-commands '()
"List of command name which should be regarded as \"\\label\"-like command.
For example, \"label\" is meet the condition. Note that backslash is not needed."
:group 'lsp-latex
:type '(repeat string)
:version "3.8.0")

(defcustom lsp-latex-experimental-label-reference-commands '()
"List of command name which should be regarded as \"\\ref\"-like command.
For example, \"ref\" is meet the condition. Note that backslash is not needed."
Expand Down Expand Up @@ -1000,7 +1007,8 @@ should be vector."
("texlab.experimental.enumEnvironments" ,(apply-partially #'lsp-latex--getter-vectorize-list 'lsp-latex-experimental-enum-environments))
("texlab.experimental.verbatimEnvironments" ,(apply-partially #'lsp-latex--getter-vectorize-list 'lsp-latex-experimental-verbatim-environments))
("texlab.experimental.citationCommands" ,(apply-partially #'lsp-latex--getter-vectorize-list 'lsp-latex-experimental-citation-commands))
("texlab.experimental.labelReferenceCommands" ,(apply-partially #'lsp-latex--getter-vectorize-list 'lsp-latex-experimental-label-reference-commands)))))
("texlab.experimental.labelReferenceCommands" ,(apply-partially #'lsp-latex--getter-vectorize-list 'lsp-latex-experimental-label-reference-commands))
("texlab.experimental.labelDefinitionCommands" ,(apply-partially #'lsp-latex--getter-vectorize-list 'lsp-latex-experimental-label-definition-commands)))))

(lsp-latex-setup-variables)

Expand Down

0 comments on commit 1965ba3

Please sign in to comment.