Skip to content

Commit

Permalink
feat: texlab 3.1.0 configurations
Browse files Browse the repository at this point in the history
  • Loading branch information
fannheyward committed Jun 3, 2021
1 parent 451049b commit cdf0924
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 9 deletions.
22 changes: 14 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,23 @@ More info in [TexLab Docs](https://texlab.netlify.com/docs)

## Configuration

- `texlab.path`: custom path to `texlab` binary, defaults to `""`
- `texlab.build.executable`: path to a LaTeX build tool, defaults to `latexmk`
- `texlab.path`: custom path to `texlab` binary, defaults `""`
- `texlab.rootDirectory`: Path to the root directory, defaults `null`
- `texlab.build.executable`: path to a LaTeX build tool, defaults `latexmk`
- `texlab.build.args`: additional arguments passed to build tool
- `texlab.build.onSave`: build after saving a file, defaults to `false`
- `texlab.auxDirectory`: directory containing the build artifacts, defaults to `"."`
- `texlab.build.onSave`: build after saving a file, defaults `false`
- `texlab.build.isContinuous`: Set this property to true if the build arguments imply a continuous build (like latexmk -pvc), defaults `false`
- `texlab.build.forwardSearchAfter`: Execute forward search after building, defaults `false`
- `texlab.auxDirectory`: directory containing the build artifacts, defaults `"."`
- `texlab.forwardSearch.executable`: path to a PDF previewer that supports SyncTeX, defaults `null`
- `texlab.forwardSearch.args`: additional arguments passed to the previewer, defaults `[]`
- `texlab.chktex.onOpenAndSave`: lint using chktex after opening and saving a file, defaults to `false`
- `texlab.chktex.onEdit`: lint using chktex after changing a file, defaults to `false`
- `texlab.bibtexFormatter`: BibTeX formatter to use
- `texlab.formatterLineLength`: maximum amount of characters per line
- `texlab.chktex.onOpenAndSave`: lint using chktex after opening and saving a file, defaults `false`
- `texlab.chktex.onEdit`: lint using chktex after changing a file, defaults `false`
- `texlab.bibtexFormatter`: BibTeX formatter to use, defaults `texlab`
- `texlab.formatterLineLength`: maximum amount of characters per line, defaults `80`
- `texlab.latexFormatter`: LaTeX formatter to use, defaults `latexindent`
- `texlab.latexindent.local`: Configures the `--local` flag of latexindent, defaults `null`
- `texlab.latexindent.modifyLineBreaks`: Configures the `--modifylinebreaks` flag of latexindent, defaults `false`

## Commands

Expand Down
18 changes: 18 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,24 @@
"type": "integer",
"default": 80,
"description": "Maximum amount of characters per line (0 = disable)."
},
"texlab.latexFormatter": {
"type": "string",
"default": "latexindent",
"description": "LaTeX formatter to use."
},
"texlab.latexindent.local": {
"type": [
"string",
"null"
],
"default": null,
"description": "Configures the --local flag of latexindent."
},
"texlab.latexindent.modifyLineBreaks": {
"type": "boolean",
"default": false,
"description": "Configures the --modifylinebreaks flag of latexindent."
}
}
},
Expand Down
2 changes: 1 addition & 1 deletion src/downloader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ async function getLatestRelease(): Promise<{ ver: string; url: string; } | null>
const resp = await fetch(apiURL, { agent: getAgent() });
if (!resp.ok) return null;

const ver = (await resp.json()).tag_name || 'v3.0.0';
const ver = (await resp.json()).tag_name || 'v3.1.0';
const urls = {
win32: `https://github.com/latex-lsp/texlab/releases/download/${ver}/texlab-x86_64-windows.zip`,
linux: `https://github.com/latex-lsp/texlab/releases/download/${ver}/texlab-x86_64-linux.tar.gz`,
Expand Down

0 comments on commit cdf0924

Please sign in to comment.