plugins.typescript-tools.settings
Options provided to the require('typescript-tools').setup
function.
Type: attribute set of anything
Default:
{ }
Example:
{
handlers = {
"textDocument/publishDiagnostics" = ''
api.filter_diagnostics(
{ 80006 }
)
'';
};
settings = {
tsserver_file_preferences = {
__raw = ''
function(ft)
return {
includeInlayParameterNameHints = "all",
includeCompletionsForModuleExports = true,
quotePreference = "auto",
}
end
'';
};
tsserver_format_options = {
__raw = ''
function(ft)
return {
allowIncompleteCompletions = false,
allowRenameOfImportPath = false,
}
end
'';
};
tsserver_plugins = [
"@styled/typescript-styled-plugin"
];
};
}
Declared by:
plugins.typescript-tools.settings.handlers
How tsserver should respond to LSP requests
Type: null or (attribute set of lua function string)
Default:
null
Example:
{
"textDocument/publishDiagnostics" = ''
require("typescript-tools.api").filter_diagnostics(
-- Ignore 'This may be converted to an async function' diagnostics.
{ 80006 }
)
'';
}
Declared by:
plugins.typescript-tools.settings.on_attach
Lua code to run when tsserver attaches to a buffer.
Type: null or lua function string
Default:
null
Plugin default: "__lspOnAttach"
Declared by: