Compare commits
No commits in common. "75b544e352c55aab752649a8bc10c7f7188d1e59" and "e673e66e1ba66fda2743d8bb781084ec4c3534b2" have entirely different histories.
75b544e352
...
e673e66e1b
2 changed files with 8 additions and 17 deletions
|
@ -1,16 +1,11 @@
|
||||||
# Gruvbox Dark
|
# Gruvbox Dark
|
||||||
|
|
||||||
ForegroundColour = 235, 219, 178
|
ForegroundColour = 235, 219, 178
|
||||||
|
|
||||||
# BackgroundColour = 29, 32, 33
|
# BackgroundColour = 29, 32, 33
|
||||||
# BackgroundColour = 23, 26, 27
|
# BackgroundColour = 23, 26, 27
|
||||||
BackgroundColour = 19, 21, 22
|
BackgroundColour = 24, 25, 26
|
||||||
|
CursorColour = 204, 36, 29
|
||||||
CursorColour = 157, 0, 6
|
IMECursorColour = 204, 36, 29
|
||||||
# CursorColour = 204, 36, 29
|
|
||||||
|
|
||||||
IMECursorColour = 157, 0, 6
|
|
||||||
# IMECursorColour = 204, 36, 29
|
|
||||||
|
|
||||||
Black = 40, 40, 40
|
Black = 40, 40, 40
|
||||||
Red = 204, 36, 29
|
Red = 204, 36, 29
|
||||||
|
|
|
@ -6,24 +6,20 @@ return {
|
||||||
event = { "BufReadPost", "BufNewFile" },
|
event = { "BufReadPost", "BufNewFile" },
|
||||||
|
|
||||||
keys = function()
|
keys = function()
|
||||||
local enable_many = function() vim.o.colorcolumn = "+1,+21,+41" end
|
local toggle_colorcolumn = function()
|
||||||
|
|
||||||
local toggle_single = function()
|
|
||||||
if vim.o.colorcolumn == "" then
|
if vim.o.colorcolumn == "" then
|
||||||
vim.o.colorcolumn = "+1"
|
vim.o.colorcolumn = "+1" -- one after 'textwidth'
|
||||||
else
|
else
|
||||||
vim.o.colorcolumn = ""
|
vim.o.colorcolumn = "" -- none
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
return {
|
return {
|
||||||
{ "<leader>sC", enable_many, desc = ui.Toggle .. " toggle virtual colunns" },
|
{ "<leader>sc", toggle_colorcolumn, desc = ui.Toggle .. " toggle virtual colunn" },
|
||||||
{ "<leader>sc", toggle_single, desc = ui.Toggle .. " toggle one colunn" },
|
|
||||||
}
|
}
|
||||||
end,
|
end,
|
||||||
|
|
||||||
opts = {
|
opts = {
|
||||||
char = { ui.LineMiddle, ui.LineMiddle, ui.LineMiddle },
|
char = ui.LineMiddle,
|
||||||
highlight = { "VirtColumn1", "VirtColumn2", "VirtColumn3" },
|
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue