Skip to content

Commit

Permalink
zen-mode: remove obsolete settings
Browse files Browse the repository at this point in the history
  • Loading branch information
ttytm committed Jun 16, 2024
1 parent dc145c8 commit 113abbb
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions lua/nxvim/plugins/zen-mode.lua
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,11 @@ local config = {

-- { == Events ==> ============================================================

local gs = package.loaded.gitsigns

config.on_open = function()
vim.g.zen_mode = true -- Used e.g. for wilder popmenu
vim.o.laststatus = 3 -- Keep statusline(not working with latest nighlty 20230328).
vim.wo.fillchars = [[eob: ,fold: ,foldopen:,foldsep: ,foldclose:›,vert:▏]]
vim.cmd("ScrollbarHide")
if gs.toggle_signs() then gs.toggle_signs() end

-- Disable default window-switch keymaps as they would close zen-mode.
nx.map({ { "<C-h>", "<C-j>", "<C-k>", "<C-l>" }, "<nop>" })
Expand All @@ -41,7 +38,6 @@ config.on_close = function()
vim.g.zen_mode = nil
vim.o.laststatus = 2
vim.cmd("ScrollbarShow")
if not gs.toggle_signs() then gs.toggle_signs() end
-- Re-enable default window-switch keymaps.
require("nxvim.plugins.smart-splits").set_maps()

Expand Down

0 comments on commit 113abbb

Please sign in to comment.