mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-22 03:35:21 +02:00
lib: remove nixvimTypes
alias
This commit is contained in:
parent
bafc6308f6
commit
2f49c76a6a
59 changed files with 261 additions and 278 deletions
|
@ -10,7 +10,7 @@ let
|
|||
cfg = config.plugins.ollama;
|
||||
|
||||
actionOptionType =
|
||||
with helpers.nixvimTypes;
|
||||
with lib.types;
|
||||
oneOf [
|
||||
rawLua
|
||||
(enum [
|
||||
|
@ -78,7 +78,7 @@ in
|
|||
let
|
||||
promptOptions = {
|
||||
prompt = mkOption {
|
||||
type = with helpers.nixvimTypes; maybeRaw str;
|
||||
type = with lib.types; maybeRaw str;
|
||||
description = ''
|
||||
The prompt to send to the model.
|
||||
|
||||
|
@ -112,8 +112,7 @@ in
|
|||
'';
|
||||
|
||||
extract =
|
||||
helpers.defaultNullOpts.mkNullable
|
||||
(with helpers.nixvimTypes; maybeRaw (either str (enum [ false ])))
|
||||
helpers.defaultNullOpts.mkNullable (with lib.types; maybeRaw (either str (enum [ false ])))
|
||||
"```$ftype\n(.-)```"
|
||||
''
|
||||
A `string.match` pattern to use for an Action to extract the output from the response
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue