File tree Expand file tree Collapse file tree 2 files changed +74
-0
lines changed
tests/test-sources/plugins/by-name/peek Expand file tree Collapse file tree 2 files changed +74
-0
lines changed Original file line number Diff line number Diff line change
1
+ { lib , ... } :
2
+ lib . nixvim . plugins . mkNeovimPlugin {
3
+ name = "peek" ;
4
+ packPathName = "peek.nvim" ;
5
+ package = "peek-nvim" ;
6
+
7
+ maintainers = [ lib . maintainers . GaetanLepage ] ;
8
+
9
+ settingsExample = {
10
+ auto_load = false ;
11
+ close_on_bdelete = false ;
12
+ app = "google-chrome-stable" ;
13
+ } ;
14
+
15
+ extraOptions = {
16
+ createUserCommands = lib . mkOption {
17
+ type = lib . types . bool ;
18
+ default = true ;
19
+ example = false ;
20
+ description = ''
21
+ Whether to create the `PeekOpen` and `PeekClose` user commands.
22
+ '' ;
23
+ } ;
24
+ } ;
25
+
26
+ extraConfig = cfg : {
27
+ plugins . peek . luaConfig . post = lib . mkIf cfg . createUserCommands ''
28
+ vim.api.nvim_create_user_command("PeekOpen", require("peek").open, {})
29
+ vim.api.nvim_create_user_command("PeekClose", require("peek").close, {})
30
+ '' ;
31
+ } ;
32
+ }
Original file line number Diff line number Diff line change
1
+ {
2
+ empty = {
3
+ plugins . peek . enable = true ;
4
+ } ;
5
+
6
+ defaults = {
7
+ plugins . peek = {
8
+ enable = true ;
9
+
10
+ settings = {
11
+ auto_load = true ;
12
+ close_on_bdelete = true ;
13
+ syntax = true ;
14
+ theme = "dark" ;
15
+ update_on_change = true ;
16
+ app = "webview" ;
17
+ filetype = [ "markdown" ] ;
18
+ throttle_at = 200000 ;
19
+ throttle_time = "auto" ;
20
+ } ;
21
+ } ;
22
+ } ;
23
+
24
+ example = {
25
+ plugins . peek = {
26
+ enable = true ;
27
+
28
+ settings = {
29
+ auto_load = false ;
30
+ close_on_bdelete = false ;
31
+ app = "google-chrome-stable" ;
32
+ } ;
33
+ } ;
34
+ } ;
35
+
36
+ withoutUserCommands = {
37
+ plugins . peek = {
38
+ enable = true ;
39
+ createUserCommands = false ;
40
+ } ;
41
+ } ;
42
+ }
You can’t perform that action at this time.
0 commit comments