-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathzen-mode.lua
More file actions
39 lines (39 loc) · 1.16 KB
/
zen-mode.lua
File metadata and controls
39 lines (39 loc) · 1.16 KB
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
---@type LazyPluginSpec
return {
"folke/zen-mode.nvim",
cmd = "ZenMode",
opts = {
window = {
height = 0.8,
width = 0.7,
options = {
cursorline = false, -- disable cursorline
cursorcolumn = false, -- disable cursor column
foldcolumn = "0", -- disable fold column
list = false, -- disable whitespace characters
number = false, -- disable number column
relativenumber = false, -- disable relative numbers
signcolumn = "no", -- disable signcolumn
spell = false,
},
},
on_open = function()
-- Disable `blink.cmp` completion
vim.b.completion = false
-- Disable `vim-illuminate`
local ok, illuminate = pcall(require, "illuminate")
if ok then
illuminate.pause()
end
end,
on_close = function()
-- Re-enable `blink.cmp` completion
vim.b.completion = true
-- Re-enable `vim-illuminate`
local ok, illuminate = pcall(require, "illuminate")
if ok then
illuminate.resume()
end
end,
},
}