diff --git a/lsp-latex.el b/lsp-latex.el index 2026987..3d4a615 100644 --- a/lsp-latex.el +++ b/lsp-latex.el @@ -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." @@ -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)