summaryrefslogtreecommitdiff
path: root/lua/custom/plugins/zenmode.lua
blob: 7f4cc883410677eca978bb1c4b161a9e5a65034c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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,
}