-
Notifications
You must be signed in to change notification settings - Fork 0
/
LSP-astro.sublime-settings
74 lines (70 loc) · 2.79 KB
/
LSP-astro.sublime-settings
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
{
"command": ["${node_bin}", "${server_path}", "--stdio"],
// base scope selectors to attach to
"selector": "source.astro | text.html.astro",
// type of buffers to attach to
"schemes": ["file", "buffer"],
// language server initialization options
"initializationOptions": {
// Diagnostic update model. (1 - Push, 2 - Pull)
"diagnosticModel": 2,
// Path to TypeScript language server's lib directory.
// If empty (default), path is determined automatically.
// To force Typescript bundled with LSP-astro set
// "$server_directory_path/node_modules/typescript/lib"
"typescript.tsdk": ""
},
// language server settings
"settings": {
// Enable TypeScript features
"astro.typescript.enabled": true,
// Enable the usage of non-standard HTML attributes, such as the ones added by AlpineJS or petite-vue
"astro.typescript.allowArbitraryAttributes": false,
// Enable diagnostic messages for TypeScript
"astro.typescript.diagnostics.enabled": true,
// Enable hover info for TypeScript
"astro.typescript.hover.enabled": true,
// Enable document symbols for TypeScript
"astro.typescript.documentSymbols.enabled": true,
// Enable completions for TypeScript
"astro.typescript.completions.enabled": true,
// Enable go to definition for TypeScript
"astro.typescript.definitions.enabled": true,
// Enable code actions for TypeScript
"astro.typescript.codeActions.enabled": true,
// Enable signature help (parameter hints) for TypeScript
"astro.typescript.signatureHelp.enabled": true,
// Enable rename functionality for JS/TS variables inside Astro files
"astro.typescript.rename.enabled": true,
// Enable semantic tokens (used for semantic highlighting) for TypeScript.
"astro.typescript.semanticTokens.enabled": true,
// Enable HTML features
"astro.html.enabled": true,
// Enable hover info for HTML
"astro.html.hover.enabled": true,
// Enable completions for HTML
"astro.html.completions.enabled": true,
// Enable Emmet completions for HTML
"astro.html.completions.emmet": true,
// Enable tag completion for HTML
"astro.html.tagComplete.enabled": true,
// Enable document symbols for CSS
"astro.html.documentSymbols.enabled": true,
// Enable CSS features
"astro.css.enabled": true,
// Enable hover info for CSS
"astro.css.hover.enabled": true,
// Enable completions for CSS
"astro.css.completions.enabled": true,
// Enable Emmet completions for CSS
"astro.css.completions.emmet": true,
// Enable color picker for CSS
"astro.css.documentColors.enabled": true,
// Enable document symbols for CSS
"astro.css.documentSymbols.enabled": true,
// Indent the formatter by one level of indentation
"astro.format.indentFrontmatter": false,
// Add a line return between the frontmatter and the template
"astro.format.newLineAfterFrontmatter": true,
}
}