mirror of
https://github.com/foo-dogsquared/dotfiles.git
synced 2025-04-23 18:19:11 +00:00
nvim: add Zen mode toggle
This commit is contained in:
parent
9af85b1ff9
commit
3ceecc86e0
@ -35,6 +35,18 @@ return {
|
|||||||
which_key = pcall(require, "which-key"),
|
which_key = pcall(require, "which-key"),
|
||||||
},
|
},
|
||||||
words = { enabled = true },
|
words = { enabled = true },
|
||||||
|
zen = {
|
||||||
|
enabled = true,
|
||||||
|
zoom = {
|
||||||
|
toggles = {
|
||||||
|
dim = true,
|
||||||
|
git_signs = false,
|
||||||
|
diagnostics = false,
|
||||||
|
inlay_hints = false,
|
||||||
|
},
|
||||||
|
win = { width = 0, },
|
||||||
|
},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
keys = {
|
keys = {
|
||||||
{
|
{
|
||||||
@ -58,6 +70,13 @@ return {
|
|||||||
end,
|
end,
|
||||||
desc = "Open current file history in lazygit",
|
desc = "Open current file history in lazygit",
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"<leader>Z",
|
||||||
|
function()
|
||||||
|
Snacks.zen()
|
||||||
|
end,
|
||||||
|
desc = "Toggle zen mode",
|
||||||
|
},
|
||||||
},
|
},
|
||||||
init = function()
|
init = function()
|
||||||
vim.api.nvim_create_autocmd("User", {
|
vim.api.nvim_create_autocmd("User", {
|
||||||
|
Loading…
Reference in New Issue
Block a user