We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f1ca023 commit 71e1f2bCopy full SHA for 71e1f2b
lua/plugins/zen-mode.lua
@@ -1,16 +1,21 @@
1
-- ZenMode | Distraction-free coding for Neovim
2
-- https://github.com/folke/zen-mode.nvim
3
4
+-- Filetypes to exclude from custom on_open rules
5
local filetypes = {
6
"fugitive",
7
"log",
8
}
9
+
10
+-- Buftypes to exclude from custom on_open rules
11
local buftypes = {
12
"nofile",
13
"prompt",
14
"terminal",
15
16
17
+---Define function to apply custom sizing rules when opening ZenMode.
18
+---@param win integer
19
local on_open = function(win)
20
-- Make certain buffers use all available columns
21
local bufnr = vim.api.nvim_win_get_buf(win)
0 commit comments