Skip to content

Commit 60556b5

Browse files
chelsea6502khaneliman
authored andcommitted
plugins/no-neck-pain: init
1 parent cebc545 commit 60556b5

File tree

2 files changed

+106
-0
lines changed

2 files changed

+106
-0
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{ lib, ... }:
2+
lib.nixvim.plugins.mkNeovimPlugin {
3+
name = "no-neck-pain";
4+
maintainers = [ lib.maintainers.ChelseaWilkinson ];
5+
packPathName = "no-neck-pain.nvim";
6+
package = "no-neck-pain-nvim";
7+
description = "☕ Dead simple yet super extensible zen mode plugin to protect your neck.";
8+
9+
settingsExample = {
10+
width = 80;
11+
autocmds = {
12+
enableOnVimEnter = true;
13+
skipEnteringNoNeckPainBuffer = true;
14+
};
15+
buffers = {
16+
colors = {
17+
background = "catppuccin-frappe";
18+
blend = -0.1;
19+
};
20+
scratchPad = {
21+
enabled = true;
22+
fileName = "notes";
23+
location = "~/";
24+
};
25+
bo = {
26+
filetype = "md";
27+
};
28+
};
29+
};
30+
}
Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
{
2+
empty = {
3+
plugins.no-neck-pain.enable = true;
4+
};
5+
6+
defaults = {
7+
plugins.no-neck-pain = {
8+
enable = true;
9+
10+
settings = {
11+
debug = false;
12+
width = 100;
13+
minSideBufferWidth = 10;
14+
disableOnLastBuffer = false;
15+
killAllBuffersOnDisable = false;
16+
fallbackOnBufferDelete = true;
17+
18+
autocmds = {
19+
enableOnVimEnter = false;
20+
enableOnTabEnter = false;
21+
};
22+
23+
mappings = {
24+
enabled = false;
25+
toggle = "<Leader>np";
26+
};
27+
28+
buffers = {
29+
setNames = false;
30+
colors = {
31+
background = null;
32+
blend = 0;
33+
};
34+
left = {
35+
enabled = true;
36+
};
37+
right = {
38+
enabled = true;
39+
};
40+
};
41+
42+
integrations = {
43+
NvimTree = {
44+
position = "left";
45+
reopen = true;
46+
};
47+
};
48+
};
49+
};
50+
};
51+
52+
example = {
53+
plugins.no-neck-pain.enable = true;
54+
plugins.no-neck-pain.settings = {
55+
width = 80;
56+
autocmds = {
57+
enableOnVimEnter = true;
58+
skipEnteringNoNeckPainBuffer = true;
59+
};
60+
buffers = {
61+
colors = {
62+
background = "catppuccin-frappe";
63+
blend = -0.1;
64+
};
65+
scratchPad = {
66+
enabled = true;
67+
fileName = "notes";
68+
location = "~/";
69+
};
70+
bo = {
71+
filetype = "md";
72+
};
73+
};
74+
};
75+
};
76+
}

0 commit comments

Comments
 (0)