mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-21 03:05:14 +02:00
plugins/no-neck-pain: init
Some checks failed
Publish every Git push to main to FlakeHub / flakehub-publish (push) Waiting to run
Publish every git push to Flakestry / publish-flake (push) Waiting to run
Documentation / Build (push) Blocked by required conditions
Documentation / Combine builds (push) Blocked by required conditions
Documentation / Version info (push) Waiting to run
Documentation / Deploy (push) Blocked by required conditions
Update maintainers list / update-maintainers (push) Has been cancelled
Some checks failed
Publish every Git push to main to FlakeHub / flakehub-publish (push) Waiting to run
Publish every git push to Flakestry / publish-flake (push) Waiting to run
Documentation / Build (push) Blocked by required conditions
Documentation / Combine builds (push) Blocked by required conditions
Documentation / Version info (push) Waiting to run
Documentation / Deploy (push) Blocked by required conditions
Update maintainers list / update-maintainers (push) Has been cancelled
This commit is contained in:
parent
cebc5458ce
commit
60556b5df9
2 changed files with 106 additions and 0 deletions
30
plugins/by-name/no-neck-pain/default.nix
Normal file
30
plugins/by-name/no-neck-pain/default.nix
Normal file
|
@ -0,0 +1,30 @@
|
|||
{ lib, ... }:
|
||||
lib.nixvim.plugins.mkNeovimPlugin {
|
||||
name = "no-neck-pain";
|
||||
maintainers = [ lib.maintainers.ChelseaWilkinson ];
|
||||
packPathName = "no-neck-pain.nvim";
|
||||
package = "no-neck-pain-nvim";
|
||||
description = "☕ Dead simple yet super extensible zen mode plugin to protect your neck.";
|
||||
|
||||
settingsExample = {
|
||||
width = 80;
|
||||
autocmds = {
|
||||
enableOnVimEnter = true;
|
||||
skipEnteringNoNeckPainBuffer = true;
|
||||
};
|
||||
buffers = {
|
||||
colors = {
|
||||
background = "catppuccin-frappe";
|
||||
blend = -0.1;
|
||||
};
|
||||
scratchPad = {
|
||||
enabled = true;
|
||||
fileName = "notes";
|
||||
location = "~/";
|
||||
};
|
||||
bo = {
|
||||
filetype = "md";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
76
tests/test-sources/plugins/by-name/no-neck-pain/default.nix
Normal file
76
tests/test-sources/plugins/by-name/no-neck-pain/default.nix
Normal file
|
@ -0,0 +1,76 @@
|
|||
{
|
||||
empty = {
|
||||
plugins.no-neck-pain.enable = true;
|
||||
};
|
||||
|
||||
defaults = {
|
||||
plugins.no-neck-pain = {
|
||||
enable = true;
|
||||
|
||||
settings = {
|
||||
debug = false;
|
||||
width = 100;
|
||||
minSideBufferWidth = 10;
|
||||
disableOnLastBuffer = false;
|
||||
killAllBuffersOnDisable = false;
|
||||
fallbackOnBufferDelete = true;
|
||||
|
||||
autocmds = {
|
||||
enableOnVimEnter = false;
|
||||
enableOnTabEnter = false;
|
||||
};
|
||||
|
||||
mappings = {
|
||||
enabled = false;
|
||||
toggle = "<Leader>np";
|
||||
};
|
||||
|
||||
buffers = {
|
||||
setNames = false;
|
||||
colors = {
|
||||
background = null;
|
||||
blend = 0;
|
||||
};
|
||||
left = {
|
||||
enabled = true;
|
||||
};
|
||||
right = {
|
||||
enabled = true;
|
||||
};
|
||||
};
|
||||
|
||||
integrations = {
|
||||
NvimTree = {
|
||||
position = "left";
|
||||
reopen = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
example = {
|
||||
plugins.no-neck-pain.enable = true;
|
||||
plugins.no-neck-pain.settings = {
|
||||
width = 80;
|
||||
autocmds = {
|
||||
enableOnVimEnter = true;
|
||||
skipEnteringNoNeckPainBuffer = true;
|
||||
};
|
||||
buffers = {
|
||||
colors = {
|
||||
background = "catppuccin-frappe";
|
||||
blend = -0.1;
|
||||
};
|
||||
scratchPad = {
|
||||
enabled = true;
|
||||
fileName = "notes";
|
||||
location = "~/";
|
||||
};
|
||||
bo = {
|
||||
filetype = "md";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue