From 5d13d9677ddd297c3ef9f47d312804bcdb878801 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20La=C3=ADn?= Date: Thu, 7 Dec 2023 22:49:09 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9A=99=EF=B8=8F=20config(nvim):=20disabling?= =?UTF-8?q?=20more=20plugins=20when=20entering=20zen=20mode?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../nvim/lua/plugins/extras/ui/zen-mode.lua | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.config/nvim/lua/plugins/extras/ui/zen-mode.lua b/.config/nvim/lua/plugins/extras/ui/zen-mode.lua index 8640fdf1..ca834c36 100644 --- a/.config/nvim/lua/plugins/extras/ui/zen-mode.lua +++ b/.config/nvim/lua/plugins/extras/ui/zen-mode.lua @@ -1,3 +1,5 @@ +local Util = require("lazyvim.util") + return { { "folke/zen-mode.nvim", @@ -12,6 +14,14 @@ return { if vim.fn.exists(":ScrollViewDisable") ~= 0 then vim.cmd("ScrollViewDisable") end + if vim.fn.exists(":LspLensOff") ~= 0 then + vim.cmd("LspLensOff") + end + if vim.fn.exists(":NvimContextVtToggle") ~= 0 then + vim.cmd("NvimContextVtToggle") + end + Util.toggle.inlay_hints() + vim.cmd("Gitsigns toggle_current_line_blame") end, on_close = function() vim.opt.laststatus = 3 @@ -21,6 +31,14 @@ return { if vim.fn.exists(":ScrollViewEnable") ~= 0 then vim.cmd("ScrollViewEnable") end + if vim.fn.exists(":LspLensOn") ~= 0 then + vim.cmd("LspLensOn") + end + if vim.fn.exists(":NvimContextVtToggle") ~= 0 then + vim.cmd("NvimContextVtToggle") + end + Util.toggle.inlay_hints() + vim.cmd("Gitsigns toggle_current_line_blame") end, }, },