FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
lvim/lua/user/zen.lua at main · abzcoding/lvim · GitHub
abzcoding
/
lvim
Public
Notifications
You must be signed in to change notification settings
Fork
61
Star
470
Code
Issues
0
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
lvim
/
lua
/
user
/
zen.lua
Copy path
More file actions
More file actions
Latest commit
History
History
History
64 lines (59 loc) · 1.58 KB
Breadcrumbs
lvim
/
lua
/
user
/
zen.lua
Copy path
File metadata and controls
64 lines (59 loc) · 1.58 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
local
M
=
{}
M
.
hide_diagnostics
=
function
()
vim
.
diagnostic
.
hide
()
end
M
.
show_diagnostics
=
function
()
vim
.
diagnostic
.
show
()
end
M
.
config
=
function
()
local
status_ok
,
zen_mode
=
pcall
(
require
,
"
zen-mode
"
)
if
not
status_ok
then
return
end
zen_mode
.
setup
{
window
=
{
backdrop
=
1
,
height
=
0.9
,
--
height of the Zen window
width
=
0.6
,
options
=
{
signcolumn
=
"
no
"
,
--
disable signcolumn
number
=
false
,
--
disable number column
relativenumber
=
false
,
--
disable relative numbers
},
},
plugins
=
{
gitsigns
=
{
enabled
=
false
},
--
disables git signs
tmux
=
{
enabled
=
not
lvim
.
builtin
.
tmux_lualine
},
twilight
=
{
enabled
=
true
},
kitty
=
{
enabled
=
false
,
font
=
"
+2
"
,
--
font size increment
},
},
on_open
=
function
()
lvim
.
builtin
.
cmp
.
active
=
false
vim
.
cmd
[[
set foldlevel=10
lua require("user.zen").hide_diagnostics()
lua require("user.indent_blankline").disable()
]]
if
lvim
.
builtin
.
tmux_lualine
==
false
then
require
(
"
lualine
"
).
hide
()
end
end
,
on_close
=
function
()
lvim
.
builtin
.
cmp
.
active
=
true
vim
.
cmd
[[
set foldlevel=4
set foldmethod=expr
set foldexpr=nvim_treesitter#foldexpr()
lua require("user.zen").show_diagnostics()
lua require("user.indent_blankline").enable()
]]
if
lvim
.
builtin
.
tmux_lualine
==
false
then
require
(
"
lualine
"
).
hide
{
unhide
=
true
}
end
end
,
}
end
return
M
Back
|
FazBrowse Home
|
New Git URL