-
Hi and thanks for a very nice plugin! I was trying to turn off line numbers with some of the options but I couldn't. So far I have (using lazy.nvim): {
"shortcuts/no-neck-pain.nvim",
cmd = { "NoNeckPain" },
keys = {
{ "<leader>tz", "<cmd>NoNeckPain<cr>", desc = "Zen-mode (No-neck-pain)" },
},
opts = {
buffers = {
wo = {
number = false,
relativenumber = false
},
},
},
}, I could always use the following keybinding though for this, but I though it might be possible to do it using the plugin's options: keys = {
{
"<leader>tz",
function()
vim.cmd([[
NoNeckPain
set invnumber
set invrelativenumber
]])
end,
desc = "Zen-mode (No-neck-pain)",
},
}, Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hey!
They are off by default, but your solution is correct, any window/buffer option you provide will be set to the NNP side windows. If you want to make this effective to any opened window, you indeed have to define it globally, this plugin only alters the window it creates. |
Beta Was this translation helpful? Give feedback.
Hey!
They are off by default, but your solution is correct, any window/buffer option you provide will be set to the NNP side windows.
If you want to make this effective to any opened window, you indeed have to define it globally, this plugin only alters the window it creates.