mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-29 20:04:28 +02:00
treewide: Reformat with nixfmt
This commit is contained in:
parent
c6281260dc
commit
62f32bfc71
459 changed files with 28139 additions and 26377 deletions
|
@ -1,8 +1,6 @@
|
|||
{ lib, helpers }:
|
||||
with lib;
|
||||
{
|
||||
lib,
|
||||
helpers,
|
||||
}:
|
||||
with lib; {
|
||||
analysisExcludedFolders = helpers.mkNullOrOption (with types; listOf str) ''
|
||||
An array of paths (absolute or relative to each workspace folder) that should be excluded from
|
||||
analysis.
|
||||
|
@ -27,15 +25,21 @@ with lib; {
|
|||
If unspecified, diagnostics will not be generated.
|
||||
'';
|
||||
|
||||
renameFilesWithClasses = helpers.mkNullOrOption (types.enum ["always" "prompt"]) ''
|
||||
When set to "always", will include edits to rename files when classes are renamed if the
|
||||
filename matches the class name (but in snake_form).
|
||||
When set to "prompt", a prompt will be shown on each class rename asking to confirm the file
|
||||
rename.
|
||||
Otherwise, files will not be renamed.
|
||||
Renames are performed using LSP's `ResourceOperation` edits - that means the rename is simply
|
||||
included in the resulting `WorkspaceEdit` and must be handled by the client.
|
||||
'';
|
||||
renameFilesWithClasses =
|
||||
helpers.mkNullOrOption
|
||||
(types.enum [
|
||||
"always"
|
||||
"prompt"
|
||||
])
|
||||
''
|
||||
When set to "always", will include edits to rename files when classes are renamed if the
|
||||
filename matches the class name (but in snake_form).
|
||||
When set to "prompt", a prompt will be shown on each class rename asking to confirm the file
|
||||
rename.
|
||||
Otherwise, files will not be renamed.
|
||||
Renames are performed using LSP's `ResourceOperation` edits - that means the rename is simply
|
||||
included in the resulting `WorkspaceEdit` and must be handled by the client.
|
||||
'';
|
||||
|
||||
enableSnippets = helpers.mkNullOrOption types.bool ''
|
||||
Whether to include code snippets (such as class, stful, switch) in code completion.
|
||||
|
@ -47,11 +51,18 @@ with lib; {
|
|||
When unspecified, imports will be updated if the client supports `willRenameFiles` requests.
|
||||
'';
|
||||
|
||||
documentation = helpers.mkNullOrOption (types.enum ["none" "summary" "full"]) ''
|
||||
The typekind of dartdocs to include in Hovers, Code Completion, Signature Help and other similar
|
||||
requests.
|
||||
If not set, defaults to `"full"`.
|
||||
'';
|
||||
documentation =
|
||||
helpers.mkNullOrOption
|
||||
(types.enum [
|
||||
"none"
|
||||
"summary"
|
||||
"full"
|
||||
])
|
||||
''
|
||||
The typekind of dartdocs to include in Hovers, Code Completion, Signature Help and other similar
|
||||
requests.
|
||||
If not set, defaults to `"full"`.
|
||||
'';
|
||||
|
||||
includeDependenciesInWorkspaceSymbols = helpers.mkNullOrOption types.bool ''
|
||||
Whether to include symbols from dependencies and Dart/Flutter SDKs in Workspace Symbol results.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue