mirror of
https://github.com/nix-community/nixvim.git
synced 2025-08-16 07:28:00 +02:00
helpers: move rawType to helpers.nixvimTypes (#871)
This is done in preparation of adding new (lua) types to help the documentation.
This commit is contained in:
parent
2f13e3a21d
commit
af41ea2d80
38 changed files with 80 additions and 75 deletions
|
@ -54,7 +54,7 @@ in {
|
|||
|
||||
buttons =
|
||||
helpers.defaultNullOpts.mkNullable
|
||||
(types.either helpers.rawType
|
||||
(types.either helpers.nixvimTypes.rawLua
|
||||
(types.listOf (types.submodule {
|
||||
options = {
|
||||
label = helpers.mkNullOrOption types.str "";
|
||||
|
@ -99,49 +99,49 @@ in {
|
|||
showTime = helpers.defaultNullOpts.mkBool true "Show the timer.";
|
||||
|
||||
# Rich presence text options.
|
||||
editingText = helpers.defaultNullOpts.mkNullable (types.either types.str helpers.rawType) "Editing %s" ''
|
||||
editingText = helpers.defaultNullOpts.mkNullable (types.either types.str helpers.nixvimTypes.rawLua) "Editing %s" ''
|
||||
String rendered when an editable file is loaded in the buffer.
|
||||
|
||||
Can also be a lua function:
|
||||
`function(filename: string): string`
|
||||
'';
|
||||
|
||||
fileExplorerText = helpers.defaultNullOpts.mkNullable (types.either types.str helpers.rawType) "Browsing %s" ''
|
||||
fileExplorerText = helpers.defaultNullOpts.mkNullable (types.either types.str helpers.nixvimTypes.rawLua) "Browsing %s" ''
|
||||
String rendered when browsing a file explorer.
|
||||
|
||||
Can also be a lua function:
|
||||
`function(file_explorer_name: string): string`
|
||||
'';
|
||||
|
||||
gitCommitText = helpers.defaultNullOpts.mkNullable (types.either types.str helpers.rawType) "Committing changes" ''
|
||||
gitCommitText = helpers.defaultNullOpts.mkNullable (types.either types.str helpers.nixvimTypes.rawLua) "Committing changes" ''
|
||||
String rendered when committing changes in git.
|
||||
|
||||
Can also be a lua function:
|
||||
`function(filename: string): string`
|
||||
'';
|
||||
|
||||
pluginManagerText = helpers.defaultNullOpts.mkNullable (types.either types.str helpers.rawType) "Managing plugins" ''
|
||||
pluginManagerText = helpers.defaultNullOpts.mkNullable (types.either types.str helpers.nixvimTypes.rawLua) "Managing plugins" ''
|
||||
String rendered when managing plugins.
|
||||
|
||||
Can also be a lua function:
|
||||
`function(plugin_manager_name: string): string`
|
||||
'';
|
||||
|
||||
readingText = helpers.defaultNullOpts.mkNullable (types.either types.str helpers.rawType) "Reading %s" ''
|
||||
readingText = helpers.defaultNullOpts.mkNullable (types.either types.str helpers.nixvimTypes.rawLua) "Reading %s" ''
|
||||
String rendered when a read-only/unmodifiable file is loaded into the buffer.
|
||||
|
||||
Can also be a lua function:
|
||||
`function(filename: string): string`
|
||||
'';
|
||||
|
||||
workspaceText = helpers.defaultNullOpts.mkNullable (types.either types.str helpers.rawType) "Working on %s" ''
|
||||
workspaceText = helpers.defaultNullOpts.mkNullable (types.either types.str helpers.nixvimTypes.rawLua) "Working on %s" ''
|
||||
String rendered when in a git repository.
|
||||
|
||||
Can also be a lua function:
|
||||
`function(project_name: string|nil, filename: string): string`
|
||||
'';
|
||||
|
||||
lineNumberText = helpers.defaultNullOpts.mkNullable (types.either types.str helpers.rawType) "Line %s out of %s" ''
|
||||
lineNumberText = helpers.defaultNullOpts.mkNullable (types.either types.str helpers.nixvimTypes.rawLua) "Line %s out of %s" ''
|
||||
String rendered when `enableLineNumber` is set to `true` to display the current line number.
|
||||
|
||||
Can also be a lua function:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue