summaryrefslogtreecommitdiff
path: root/lua/custom/plugins/zenmode.lua
diff options
context:
space:
mode:
authortdback <tyler@tdback.net>2024-12-04 18:48:24 -0500
committertdback <tyler@tdback.net>2024-12-04 18:48:24 -0500
commit3b2163b821f4dbf1003804b9b19fd276dc4bc350 (patch)
tree809a679142eae8e7d3b4d2b3cf1426416883a7f9 /lua/custom/plugins/zenmode.lua
initial commit to new repo
Diffstat (limited to 'lua/custom/plugins/zenmode.lua')
-rw-r--r--lua/custom/plugins/zenmode.lua30
1 files changed, 30 insertions, 0 deletions
diff --git a/lua/custom/plugins/zenmode.lua b/lua/custom/plugins/zenmode.lua
new file mode 100644
index 0000000..7f4cc88
--- /dev/null
+++ b/lua/custom/plugins/zenmode.lua
@@ -0,0 +1,30 @@
+return {
+ "folke/zen-mode.nvim",
+ config = function()
+ vim.keymap.set("n", "<leader>zz", function()
+ require("zen-mode").setup({
+ window = {
+ width = 80,
+ options = {
+ signcolumn = "no",
+ number = false,
+ relativenumber = false,
+ wrap = true,
+ linebreak = true,
+ cursorline = false,
+ colorcolumn = "0",
+ },
+ },
+ plugins = {
+ gitsigns = { enabled = false },
+ options = {
+ enabled = true,
+ ruler = false,
+ showcmd = false,
+ },
+ },
+ })
+ require("zen-mode").toggle()
+ end)
+ end,
+}