blob: c9cf9f3fa35e9d43d065912f161d7763b5d8bfa0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
-- Alternar la columna de color (reemplaza ecthelionvi/NeoColumn.nvim)
vim.api.nvim_create_user_command("ToggleColorColumn", function()
vim.opt_local.colorcolumn = vim.wo.colorcolumn == "" and "80" or ""
end, { desc = "Alternar colorcolumn (80)" })
-- Atenuar el código fuera del scope (reemplaza twilight.nvim con snacks.dim)
local dim_on = false
vim.api.nvim_create_user_command("Twilight", function()
dim_on = not dim_on
if dim_on then
Snacks.dim.enable()
else
Snacks.dim.disable()
end
end, { desc = "Toggle dim del scope (snacks)" })
|