Skip to content
This repository was archived by the owner on Apr 8, 2024. It is now read-only.

Commit 7a08c2b

Browse files
community: distraction-free editing with zen-mode
- "astrocommunity.editing-support.zen-mode-nvim" - Add `zZ` mapping and meunu icon
1 parent eb3f1b3 commit 7a08c2b

2 files changed

Lines changed: 21 additions & 0 deletions

File tree

mappings.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ return {
2525
-- tables with the `name` key will be registered with which-key if it's installed
2626
-- this is useful for naming menus
2727
["<leader>b"] = { name = "Buffers" },
28+
29+
-- Editing
30+
["zZ"] = { "<cmd>ZenMode<cr>", desc = " Zen mode" },
31+
2832
-- Git Menu
2933
-- Menu mappings
3034
["<leader>gh"] = false, -- disable Reset Git Hunk mapping

plugins/community.lua

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,24 @@ return {
1919
{ import = "astrocommunity.editing-support.nvim-regexplainer" },
2020
{ import = "astrocommunity.editing-support.todo-comments-nvim" },
2121

22+
-- Distraction free editing
23+
{ import = "astrocommunity.editing-support.zen-mode-nvim" },
2224
{
25+
"folke/zen-mode.nvim",
26+
opts = {
27+
-- override default configuration
28+
-- https://github.com/folke/zen-mode.nvim#%EF%B8%8F-configuration
29+
plugins = {
30+
options = {
31+
enabled = true,
32+
},
33+
kitty = {
34+
enabled = true,
35+
font = "+4", -- font size increment
36+
-- font = "20", -- font size increment
37+
-- font_size = "20", -- font size increment
38+
},
39+
},
2340
},
2441
},
2542

0 commit comments

Comments
 (0)