2023-01-19 01:47:14 +00:00
|
|
|
{
|
2023-06-08 10:15:41 +01:00
|
|
|
// Luau - disable Roblox features, enable Lune typedefs & requires
|
|
|
|
"luau-lsp.sourcemap.enabled": false,
|
|
|
|
"luau-lsp.types.roblox": false,
|
|
|
|
"luau-lsp.require.mode": "relativeToFile",
|
2023-06-28 11:10:17 +01:00
|
|
|
"luau-lsp.require.directoryAliases": {
|
2023-07-05 09:40:58 +01:00
|
|
|
"@lune/": "./docs/typedefs/"
|
2023-06-08 10:15:41 +01:00
|
|
|
},
|
|
|
|
// Luau - ignore type defs file in docs dir and dev scripts we use
|
|
|
|
"luau-lsp.ignoreGlobs": [
|
|
|
|
"docs/*.d.luau",
|
|
|
|
"packages/lib-roblox/scripts/*.luau",
|
|
|
|
"tests/roblox/rbx-test-files/**/*.lua",
|
|
|
|
"tests/roblox/rbx-test-files/**/*.luau"
|
|
|
|
],
|
|
|
|
// Rust
|
|
|
|
"rust-analyzer.check.command": "clippy",
|
|
|
|
// Formatting
|
|
|
|
"editor.formatOnSave": true,
|
|
|
|
"stylua.searchParentDirectories": true,
|
|
|
|
"prettier.tabWidth": 2,
|
|
|
|
"[luau][lua]": {
|
|
|
|
"editor.defaultFormatter": "JohnnyMorganz.stylua"
|
|
|
|
},
|
|
|
|
"[json][jsonc][markdown][yaml]": {
|
|
|
|
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
|
|
|
},
|
|
|
|
"[rust]": {
|
|
|
|
"editor.defaultFormatter": "rust-lang.rust-analyzer"
|
|
|
|
}
|
2023-01-19 01:47:14 +00:00
|
|
|
}
|