summaryrefslogtreecommitdiff
path: root/.config/nvim/lua/extra/zen.lua
blob: 9bfaf1afb4e3a2c0e2a5fade53e5e7cb42159327 (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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
local M = {}
local Log = require "core.log"

M.config = function()
  local status_ok, zen_mode = pcall(require, "zen-mode")
  if not status_ok then
    Log:get_default().error "Failed to load zen-mode"
    return
  end

  zen_mode.setup {
    window = {
      backdrop = 1,
      height = 0.9, -- height of the Zen window
      width = 0.65,
      options = {
        signcolumn = "no", -- disable signcolumn
        number = false, -- disable number column
        relativenumber = false, -- disable relative numbers
        -- cursorline = false, -- disable cursorline
        -- cursorcolumn = false, -- disable cursor column
        -- foldcolumn = "0", -- disable fold column
        -- list = false, -- disable whitespace characters
      },
    },
    plugins = {
      gitsigns = { enabled = false }, -- disables git signs
      tmux = { enabled = true },
      twilight = { enabled = true },
    },
    -- on_open = function()
    --   vim.lsp.diagnostic.disable()
    --   vim.cmd [[
    --       set foldlevel=10
    --       IndentBlanklineDisable
    --       ]]
    -- end,
    -- on_close = function()
    --   vim.lsp.diagnostic.enable()
    --   vim.cmd [[
    --       set foldlevel=5
    --       IndentBlanklineEnable
    --       ]]
    -- end,
  }
end

return M