-
-
Notifications
You must be signed in to change notification settings - Fork 295
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6f45ca4
commit 7391dc1
Showing
2 changed files
with
55 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ lib, ... }: | ||
let | ||
inherit (lib.nixvim) defaultNullOpts; | ||
in | ||
lib.nixvim.plugins.mkNeovimPlugin { | ||
name = "blink-compat"; | ||
packPathName = "blink.compat"; | ||
package = "blink-compat"; | ||
|
||
maintainers = [ lib.maintainers.HeitorAugustoLN ]; | ||
|
||
settingsOptions = { | ||
impersonate_nvim_cmp = defaultNullOpts.mkBool false '' | ||
Whether to impersonate nvim-cmp | ||
Some plugins lazily register their completion source when nvim-cmp is | ||
loaded, so pretend that we are nvim-cmp, and that nvim-cmp is loaded. | ||
most plugins don't do this, so this option should rarely be needed. | ||
''; | ||
|
||
debug = defaultNullOpts.mkBool false '' | ||
Whether to enable debug mode. Might be useful for troubleshooting. | ||
''; | ||
}; | ||
|
||
settingsExample = { | ||
impersonate_nvim_cmp = true; | ||
debug = false; | ||
}; | ||
} |
25 changes: 25 additions & 0 deletions
25
tests/test-sources/plugins/by-name/blink-compat/default.nix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
empty = { | ||
plugins.blink-compat.enable = true; | ||
}; | ||
|
||
example = { | ||
plugins.blink-compat = { | ||
enable = true; | ||
settings = { | ||
impersonate_nvim_cmp = true; | ||
debug = false; | ||
}; | ||
}; | ||
}; | ||
|
||
default = { | ||
plugins.blink-compat = { | ||
enable = true; | ||
settings = { | ||
impersonate_nvim_cmp = false; | ||
debug = false; | ||
}; | ||
}; | ||
}; | ||
} |