latexmk/latexmk.pl is the latexmk code. latexmk uses latexmkrc/.latexmkrc as its configuration file, which contains some default variables such as $out_dir, $show_time, @default_files, and functions like add_cus_dep, etc. The goal is to provide LSP support for latexmkrc/.latexmkrc, including completion for default variables and functions, as well as function jumping.
A possible and general solution is to provide an additional configuration option in the initializationOptions of the initialize request for perl-language-server.
{
"method": "initialize",
"params": {
"initializationOptions": {
"perlnavigator": {
"fileAssociations": {
"latexmkrc": ["/the/path/of/latexmk"],
".latexmkrc": ["/the/path/of/latexmk"]
}
}
}
}
}
/the/path/of/latexmk is the path to latexmk/latexmk.pl, and then the language server can provide LSP support for latexmkrc/.latexmkrc based on this file.
Similar issues:
latexmk/latexmk.pl is the latexmk code. latexmk uses latexmkrc/.latexmkrc as its configuration file, which contains some default variables such as $out_dir, $show_time, @default_files, and functions like add_cus_dep, etc. The goal is to provide LSP support for latexmkrc/.latexmkrc, including completion for default variables and functions, as well as function jumping.
A possible and general solution is to provide an additional configuration option in the initializationOptions of the initialize request for perl-language-server.
{ "method": "initialize", "params": { "initializationOptions": { "perlnavigator": { "fileAssociations": { "latexmkrc": ["/the/path/of/latexmk"], ".latexmkrc": ["/the/path/of/latexmk"] } } } } }/the/path/of/latexmk is the path to latexmk/latexmk.pl, and then the language server can provide LSP support for latexmkrc/.latexmkrc based on this file.
Similar issues: