Compare commits

...

5 Commits

5 changed files with 263 additions and 239 deletions

View File

@ -15,7 +15,7 @@ local g = vim.g
--@return position number: a valid position for setting a variant from the variant table --@return position number: a valid position for setting a variant from the variant table
local function change_variant(v_tab, pos) local function change_variant(v_tab, pos)
if next(v_tab) == nil then return end if next(v_tab) == nil then return end
return table.getn(v_tab) > pos and pos + 1 or 1 return #v_tab > pos and pos + 1 or 1
end end
---Set a especific variant ---Set a especific variant

View File

@ -8,6 +8,11 @@
local M = {} local M = {}
local g = vim.g local g = vim.g
local static = {
coq_checked ="#36704f",
coq_sent ="#4b4b4b",
}
-- Load terminal colors -- Load terminal colors
--@param tab table: scheme colors to apply --@param tab table: scheme colors to apply
local function terminal_colors(tab) local function terminal_colors(tab)
@ -43,7 +48,7 @@ function M.load_colors(scheme)
Normal = { fg = scheme.foreground, bg = scheme.background, scheme.none }, Normal = { fg = scheme.foreground, bg = scheme.background, scheme.none },
NormalFloat = { fg = scheme.foreground, bg = scheme.background_alt, scheme.none }, NormalFloat = { fg = scheme.foreground, bg = scheme.background_alt, scheme.none },
Terminal = { link = "Normal" }, Terminal = { link = "Normal" },
Visual = { fg = scheme.yellow, bg = scheme.background_alt, scheme.none }, Visual = { fg = scheme.green, bg = scheme.background_alt, scheme.none },
VisualNOS = { link = "Visual" }, VisualNOS = { link = "Visual" },
Cursor = { fg = scheme.background, bg = scheme.foreground, scheme.none }, Cursor = { fg = scheme.background, bg = scheme.foreground, scheme.none },
CursorLine = { fg = scheme.none, bg = scheme.background_alt, scheme.none }, CursorLine = { fg = scheme.none, bg = scheme.background_alt, scheme.none },
@ -196,11 +201,31 @@ function M.load_colors(scheme)
DiagnosticFloatingHint = { link = "DiagnosticVirtualTextHint" }, DiagnosticFloatingHint = { link = "DiagnosticVirtualTextHint" },
DiagnosticSignHint = { link = "DiagnosticVirtualTextHint" }, DiagnosticSignHint = { link = "DiagnosticVirtualTextHint" },
--------------------
-- LUASNIP COLORS --
--------------------
LuaSnipInactive = { link = "Comment" },
LuaSnipChoice = { fg = scheme.yellow, bg = scheme.none, scheme.none },
LuaSnipFunction = { fg = scheme.magenta, bg = scheme.none, scheme.none },
LuaSnipInsert = { fg = scheme.blue, bg = scheme.none, scheme.none },
----------------
-- CMP COLORS --
----------------
CmpItemKindVariable = { fg = scheme.none, bg = scheme.none, scheme.none },
CmpItemKindClass = { fg = scheme.yellow, bg = scheme.none, scheme.none },
CmpItemKindInterface = { link = "CmpItemKindClass" },
CmpItemKindModule = { link = "CmpItemKindClass" },
CmpItemKindText = { fg = scheme.green, bg = scheme.none, scheme.none },
CmpItemKindKeyword = { fg = scheme.orange, bg = scheme.none, scheme.none },
CmpItemKindFunction = { fg = scheme.blue, bg = scheme.none, scheme.none },
CmpItemKindMethod = { link = "CmpItemKindFunction" },
---------------- ----------------
-- COQ COLORS -- -- COQ COLORS --
---------------- ----------------
CoqtailChecked = { fg = scheme.none, bg = scheme.darkgreen, scheme.none }, CoqtailChecked = { fg = scheme.none, bg = static.coq_checked, scheme.none },
CoqtailSent = { fg = scheme.none, bg = scheme.darkgrey, scheme.none }, CoqtailSent = { fg = scheme.none, bg = static.coq_sent, scheme.none },
} }
terminal_colors(scheme) terminal_colors(scheme)

View File

@ -52,7 +52,6 @@ local function load_colorscheme(scheme, custom_tab)
for grp, col in pairs(color_table) do for grp, col in pairs(color_table) do
set_highlights(grp, col) set_highlights(grp, col)
end end
end end
-- Set and load the color scheme -- Set and load the color scheme