Skip to content

[feature] fileAssociations for some perl files (latexmkrc, ...) #196

Description

@Freed-Wu

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:

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions