-
-
Notifications
You must be signed in to change notification settings - Fork 20
Showcase
require("no-neck-pain").setup({
buffers = {
right = {
enabled = false,
},
},
}) |
|
require("no-neck-pain").setup({
buffers = {
left = {
enabled = false,
},
},
}) |
|
💡 The plugin provides a built-in way to leverage the buffers as scratch pads, with auto-saving features!
require("no-neck-pain").setup({
buffers = {
scratchPad = {
-- set to `false` to
-- disable auto-saving
enabled = true,
-- set to `nil` to default
-- to current working directory
location = "~/Documents/",
},
bo = {
filetype = "md"
},
},
}) |
|
💡 The plugin doesn't override default theme options, so it's intentional to see eob characters (nvim defaults to
~
) if it's enabled in your current theme.
💡 The
backgroundColor
option accepts hexadecimal color codes starting with a#
, but also popular theme names, you can find an exhaustive list on the README or in Neovim:h NoNeckPain.bufferOptions
. Want to add your theme to the list? open an issue
require("no-neck-pain").setup({
buffers = {
backgroundColor = "catppuccin-frappe",
},
}) |
|
require("no-neck-pain").setup({
buffers = {
left = {
backgroundColor = "catppuccin-frappe",
},
right = {
backgroundColor = "tokyonight-moon",
}
},
}) |
|
💡 If a
backgroundColor
is not provided, we will blend the background color of your current theme.
require("no-neck-pain").setup({
buffers = {
blend = -0.2,
},
}) |
|
require("no-neck-pain").setup({
buffers = {
blend = 0.3,
},
}) |
|
Side buffers are left in place when opening a split or help window snippet used for the screenshot require("no-neck-pain").setup({
width = 80,
buffers = {
backgroundColor = "onedark",
blend = -0.1,
scratchPad = {
enabled = true,
fileName = "notes",
location = "~/",
},
bo = {
filetype = "md",
},
},
}) |
|
snippet used for the screenshot require("no-neck-pain").setup({
width = 80,
buffers = {
backgroundColor = "onedark",
blend = -0.1,
scratchPad = {
enabled = true,
fileName = "notes",
location = "~/",
},
bo = {
filetype = "md",
},
},
}) |
|
Works out of the box when resizing your terminal, opening tmux panes, having multiple small windows, etc. |
|