mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-22 03:35:21 +02:00
plugins/typescript-tools: migrate to mkNeovimPlugin
This commit is contained in:
parent
2a40d081d7
commit
bb0e3892a2
2 changed files with 187 additions and 71 deletions
|
@ -7,20 +7,20 @@
|
|||
plugins.typescript-tools = {
|
||||
enable = true;
|
||||
settings = {
|
||||
separateDiagnosticServer = true;
|
||||
publishDiagnosticOn = "insert_leave";
|
||||
exposeAsCodeAction = null;
|
||||
tsserverPath = null;
|
||||
tsserverPlugins = null;
|
||||
tsserverMaxMemory = "auto";
|
||||
tsserverFormatOptions = null;
|
||||
tsserverFilePreferences = null;
|
||||
tsserverLocale = "en";
|
||||
completeFunctionCalls = false;
|
||||
includeCompletionsWithInsertText = true;
|
||||
codeLens = "off";
|
||||
disableMemberCodeLens = true;
|
||||
jsxCloseTag = {
|
||||
separate_diagnostic_server = true;
|
||||
publish_diagnostic_on = "insert_leave";
|
||||
expose_as_code_action = null;
|
||||
tsserver_path = null;
|
||||
tsserver_plugins = null;
|
||||
tsserver_max_memory = "auto";
|
||||
tsserver_format_options = null;
|
||||
tsserver_file_preferences = null;
|
||||
tsserver_locale = "en";
|
||||
complete_function_calls = false;
|
||||
include_completions_with_insert_text = true;
|
||||
code_lens = "off";
|
||||
disable_member_code_lens = true;
|
||||
jsx_close_tag = {
|
||||
enable = false;
|
||||
filetypes = [
|
||||
"javascriptreact"
|
||||
|
@ -30,4 +30,41 @@
|
|||
};
|
||||
};
|
||||
};
|
||||
|
||||
example = {
|
||||
plugins.typescript-tools = {
|
||||
enable = true;
|
||||
settings = {
|
||||
handlers = {
|
||||
"textDocument/publishDiagnostics" = ''
|
||||
api.filter_diagnostics(
|
||||
{ 80006 }
|
||||
)
|
||||
'';
|
||||
};
|
||||
settings = {
|
||||
tsserver_plugins = [
|
||||
"@styled/typescript-styled-plugin"
|
||||
];
|
||||
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
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue