You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Neovide is a commonly used GUI wrapper for Neovim, which may
unfortunately be way too flashy and distracting at times; having a way
to limit animations and have a convenient short-hand for integration
logic feels like a nice improvement in line with what other external
interfaces like ones for Wezterm and Kitty provide.
- increase [Neovide](https://neovide.dev/) scale factor and disable animations
24
25
-**Zen Mode** is automatically closed when a new non-floating window is opened
25
26
- works well with plugins like [Telescope](https://github.com/nvim-telescope/telescope.nvim) to open a new buffer inside the Zen window
26
27
- close the Zen window with `:ZenMode`, `:close` or `:quit`
@@ -113,6 +114,22 @@ Install the plugin with your preferred package manager:
113
114
-- can be either an absolute font size or the number of incremental steps
114
115
font="+4", -- (10% increase per step)
115
116
},
117
+
-- this will change the scale factor in Neovide when in zen mode
118
+
-- See alse also the Plugins/Wezterm section in this projects README
119
+
neovide= {
120
+
enabled=false,
121
+
-- Will multiply the current scale factor by this number
122
+
scale=1.2
123
+
-- disable the Neovide animations while in Zen mode
124
+
disable_animations= {
125
+
neovide_animation_length=0,
126
+
neovide_cursor_animate_command_line=false,
127
+
neovide_scroll_animation_length=0,
128
+
neovide_position_animation_length=0,
129
+
neovide_cursor_animation_length=0,
130
+
neovide_cursor_vfx_mode="",
131
+
}
132
+
},
116
133
},
117
134
-- callback where you can add custom code when the Zen window opens
118
135
on_open=function(win)
@@ -178,6 +195,10 @@ set-option -g allow-passthrough on
178
195
179
196
See also: https://github.com/wez/wezterm/discussions/2550
180
197
198
+
### Neovide
199
+
200
+
Neovide config will only be executed if vim variable `g:neovide` is set to 1, which Neovide does automatically on startup. By modifying table `plugins.neovide.disable_animations`, you can control which variables in `g:` namespace get temporarily overriden while in Zen mode. By default, all animations are disabled. See [Neovide documentation](https://neovide.dev/configuration.html) for possible values.
201
+
181
202
## Inspiration
182
203
183
204
- Visual Studio Code [Zen Mode](https://code.visualstudio.com/docs/getstarted/userinterface#_zen-mode)
0 commit comments