diff --git a/Packages/User/LSP-typescript.sublime-settings b/Packages/User/LSP-typescript.sublime-settings new file mode 100644 index 0000000..6ee5eb7 --- /dev/null +++ b/Packages/User/LSP-typescript.sublime-settings @@ -0,0 +1,44 @@ +// Settings in here override those in "LSP-typescript/LSP-typescript.sublime-settings" + +{ + "settings": { + // Javascript inlay hints options. + "javascript.inlayHints.includeInlayEnumMemberValueHints": true, + "javascript.inlayHints.includeInlayFunctionLikeReturnTypeHints": true, + "javascript.inlayHints.includeInlayFunctionParameterTypeHints": true, + "javascript.inlayHints.includeInlayParameterNameHints": "all", // none | literals | all + "javascript.inlayHints.includeInlayParameterNameHintsWhenArgumentMatchesName": true, + "javascript.inlayHints.includeInlayPropertyDeclarationTypeHints": true, + "javascript.inlayHints.includeInlayVariableTypeHints": true, + "javascript.inlayHints.includeInlayVariableTypeHintsWhenTypeMatchesName": true, + // Typescript formatting options. + "typescript.format.insertSpaceAfterCommaDelimiter": true, + "typescript.format.insertSpaceAfterConstructor": true, + "typescript.format.insertSpaceAfterFunctionKeywordForAnonymousFunctions": true, + "typescript.format.insertSpaceAfterKeywordsInControlFlowStatements": true, + "typescript.format.insertSpaceAfterOpeningAndBeforeClosingEmptyBraces": true, + "typescript.format.insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces": true, + "typescript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces": true, + "typescript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets": true, + "typescript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis": true, + "typescript.format.insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces": true, + "typescript.format.insertSpaceAfterSemicolonInForStatements": true, + "typescript.format.insertSpaceAfterTypeAssertion": true, + "typescript.format.insertSpaceBeforeAndAfterBinaryOperators": true, + "typescript.format.insertSpaceBeforeFunctionParenthesis": false, + "typescript.format.insertSpaceBeforeTypeAnnotation": true, + "typescript.format.placeOpenBraceOnNewLineForControlBlocks": false, + "typescript.format.placeOpenBraceOnNewLineForFunctions": false, + "typescript.format.semicolons": "ignore", // ignore | insert | remove + "typescript.format.trimTrailingWhitespace": true, + // Typescript inlay hints options. + "typescript.inlayHints.includeInlayEnumMemberValueHints": true, + "typescript.inlayHints.includeInlayFunctionLikeReturnTypeHints": true, + "typescript.inlayHints.includeInlayFunctionParameterTypeHints": true, + "typescript.inlayHints.includeInlayParameterNameHints": "all", // none | literals | all + "typescript.inlayHints.includeInlayParameterNameHintsWhenArgumentMatchesName": true, + "typescript.inlayHints.includeInlayPropertyDeclarationTypeHints": true, + "typescript.inlayHints.includeInlayVariableTypeHints": true, + "typescript.inlayHints.includeInlayVariableTypeHintsWhenTypeMatchesName": true, + } +} diff --git a/Packages/User/LSP.sublime-settings b/Packages/User/LSP.sublime-settings index 150a920..845a468 100644 --- a/Packages/User/LSP.sublime-settings +++ b/Packages/User/LSP.sublime-settings @@ -6,4 +6,5 @@ "remote", ], "show_diagnostics_panel_on_save": 0, + "show_inlay_hints": true, }