for trace

This commit is contained in:
2026-04-02 00:33:59 +03:00
parent dccb94c8c8
commit 85459a6fd6
6 changed files with 40 additions and 140 deletions

View File

@ -1,4 +1,4 @@
vim.g.mutton_min_center_width = 110
vim.g.mutton_min_center_width = 100
-- Для Mutton
local normal_bg = vim.fn.synIDattr(vim.fn.hlID("Normal"), "bg")
vim.api.nvim_set_hl(0, "EndOfBuffer", { fg = normal_bg} ) -- overrides `~` character at the end of buffer
@ -15,6 +15,9 @@ local function on_buf_read()
if buf_name:match("%.md$") and mutton == false and not buf_name:match("ui.md$") then -- Проверяем, заканчивается ли имя на ".md"
mutton = true
vim.cmd("MuttonToggle")
vim.opt.number = false
vim.opt.relativenumber = false
elseif mutton == true and buf_name:match("ui.md$") then
mutton = false
vim.cmd("wincmd l | q")