⚙️ config(nvim): disabling more plugins when entering zen mode
This commit is contained in:
parent
6a9ab71ee4
commit
5d13d9677d
1 changed files with 18 additions and 0 deletions
|
@ -1,3 +1,5 @@
|
||||||
|
local Util = require("lazyvim.util")
|
||||||
|
|
||||||
return {
|
return {
|
||||||
{
|
{
|
||||||
"folke/zen-mode.nvim",
|
"folke/zen-mode.nvim",
|
||||||
|
@ -12,6 +14,14 @@ return {
|
||||||
if vim.fn.exists(":ScrollViewDisable") ~= 0 then
|
if vim.fn.exists(":ScrollViewDisable") ~= 0 then
|
||||||
vim.cmd("ScrollViewDisable")
|
vim.cmd("ScrollViewDisable")
|
||||||
end
|
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,
|
end,
|
||||||
on_close = function()
|
on_close = function()
|
||||||
vim.opt.laststatus = 3
|
vim.opt.laststatus = 3
|
||||||
|
@ -21,6 +31,14 @@ return {
|
||||||
if vim.fn.exists(":ScrollViewEnable") ~= 0 then
|
if vim.fn.exists(":ScrollViewEnable") ~= 0 then
|
||||||
vim.cmd("ScrollViewEnable")
|
vim.cmd("ScrollViewEnable")
|
||||||
end
|
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,
|
end,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Reference in a new issue