Files
nvim/lua/plugins/colourscheme.lua
T

323 lines
7.6 KiB
Lua

local material = {
'marko-cerovac/material.nvim',
priority = 1000,
lazy = true,
config = function()
local material = require "material"
--local colours = require "material.colors"
local ignores = require('ignoreConfig.colourConfig')
vim.g.material_style = "darker"
--vim.g.material_style = "palenight"
material.setup({
lualine_style = "default", -- Lualine style ( can be 'stealth' or 'default' )
disable = ignores[1],
custom_highlights = {
Comment = { fg = "#b7b0bf" },
LineNr = { fg = "#b7b0bf" },
-- AlphaHeader = { fg = "#3661cf" },
-- AlphaFooter = { fg = colours.main.red},
},
})
--vim.cmd('colorscheme material')
end,
}
--material styles:
--daker
--lighter
--oceanic
--palenight
--deep ocean
--]]
-- DRACULA
local dracula = {
-- add dracula
"Mofiqul/dracula.nvim",
priority = 1000,
lazy = true,
--config = function()
-- vim.cmd('colorscheme dracula')
--end,
}
local kanagawa = {
"rebelot/kanagawa.nvim",
priority = 1000,
lazy = true,
config = function()
local ignores = require('ignoreConfig.colourConfig')
require('kanagawa').setup({
theme = "lotus",
compile = true,
commentStyle = { italic = true },
transparent = ignores.transparent,
colors = {
--palette = {
-- -- change all usages of these colors
-- --fujiGray = "#FFFFFF",
--},
theme = {
all = {
syn = {
--comment = "#FF00FF",
comment = "#CDD3D4",
}
},
},
},
})
--vim.cmd("colorscheme kanagawa-dragon")
-- colourschemes:
-- wave (default)
-- dragon (dark)
-- lotus (MY EEEEYES!)
end,
--uncomment this and 'compile=true' in setup if compiling to bytecode
--build = function()
-- vim.cmd("KanagawaCompile")
--end,
}
--EVERFOREST
local everforest = {
"neanias/everforest-nvim",
priority = 1000,
lazy = true,
config = function()
local everforest = require("everforest");
local ignore = require('ignoreConfig.colourConfig');
everforest.setup({
background = "hard",
transparent_background_level = ignore.transparent,
italics = true,
});
everforest.load();
--vim.cmd("colorscheme everforest");
end,
}
--ROSE-PINE
local rosepine = {
"rose-pine/neovim",
priority = 1000,
lazy = true,
config = function()
local rosepine = require("rose-pine");
rosepine.setup({
variant = "moon", -- Options: "main", "moon", "dawn"
dark_variant = "moon",
bold_vert_split = false,
dim_nc_background = false,
disable_background = false,
disable_float_background = false,
disable_italics = false,
groups = {
background = "base",
panel = "surface",
border = "highlight_low",
comment = "muted",
link = "iris",
punctuation = "subtle",
todo = "rose",
warn = "gold",
error = "love",
info = "foam",
hint = "iris",
},
})
end,
-- vim.cmd("colorscheme rose-pine")
-- vim.cmd("colorscheme rose-pine-main")
-- vim.cmd("colorscheme rose-pine-moon")
-- vim.cmd("colorscheme rose-pine-dawn")
}
local vesper = {
'datsfilipe/vesper.nvim',
priority = 1000,
}
local aquavium = {
"T-b-t-nchos/Aquavium.nvim",
lazy = false,
priority = 1000,
config = function()
local aquavium = require("Aquavium")
aquavium.setup({
-- your options here
-- bold = true, -- enable/disable to use bold-style
-- italic = true, -- enable/disable to use italic-style
transparent = true, -- enable/disable transparent background
})
--vim.cmd("colorscheme Aquavium")
end,
}
local bluloco = {
'uloco/bluloco.nvim',
lazy = false,
priority = 1000,
dependencies = { 'rktjmp/lush.nvim' },
config = function()
-- your optional config goes here, see below.
require("bluloco").setup({
style = "dark", -- "auto" | "dark" | "light"
transparent = false,
italics = false,
terminal = vim.fn.has("gui_running") == 1, -- bluoco colors are enabled in gui terminals per default.
guicursor = true,
rainbow_headings = false, -- if you want different colored headings for each heading level
float_window = "default" -- "default" | "transparent"
})
end,
}
-- THE FUN COLOUR ONE
function wrapHue(h)
if h > 360 then
return h - (h%360)
end
if h < 0 then
return -1*((-1*h)%360) + 360
end
return h
end
local baseColour = 180
vim.api.nvim_create_user_command('FarbaColour', function(opts)
baseColour = wrapHue(tonumber(opts.args))
require("farba").setup({
cache = false,
mode = "dark", -- "light"|"dark" or let 'vim.o.background' decide with nil
transparency = {
normal = false, -- `true` to hide background
float = false, -- `true` to hide floating window background
},
palette = {
--[[
-- DEFAULT
general = {
gray = { hue = 0, sat = 0 },
red = { hue = 0, sat = 100 },
yellow = { hue = 30, sat = 75 },
green = { hue = 90, sat = 50 },
cyan = { hue = 140, sat = 75 },
blue = { hue = 180, sat = 50 },
magenta = { hue = 280, sat = 35 },
},
--]]
general = {
gray = { hue = baseColour, sat = 80 },
red = { hue = baseColour+10, sat = 100 },
yellow = { hue = baseColour+20, sat = 100 },
green = { hue = baseColour+40, sat = 100 },
cyan = { hue = baseColour-40, sat = 100 },
blue = { hue = baseColour-20, sat = 100 },
magenta = { hue = baseColour-10, sat = 100 },
},
-- the following use the same structure
-- missing fields use `general` as fallback
status = nil,
terminal = nil,
syntax = nil,
},
})
vim.cmd.colorscheme("farba")
end, { nargs = 1 })
local farba = {
"shushtain/farba.nvim", -- Replace with the actual GitHub repo if it exists
lazy = false, -- Make sure it loads immediately on startup
priority = 1000, -- Load high priority before other plugins
config = function()
--vim.cmd.colorscheme("farba")
require("farba").setup({
cache = false,
mode = "dark", -- "light"|"dark" or let 'vim.o.background' decide with nil
transparency = {
normal = false, -- `true` to hide background
float = false, -- `true` to hide floating window background
},
palette = {
--[[
-- DEFAULT
general = {
gray = { hue = 0, sat = 0 },
red = { hue = 0, sat = 100 },
yellow = { hue = 30, sat = 75 },
green = { hue = 90, sat = 50 },
cyan = { hue = 140, sat = 75 },
blue = { hue = 180, sat = 50 },
magenta = { hue = 280, sat = 35 },
},
--]]
general = {
gray = { hue = baseColour, sat = 80 },
red = { hue = baseColour+10, sat = 100 },
yellow = { hue = baseColour+20, sat = 100 },
green = { hue = baseColour+40, sat = 100 },
cyan = { hue = baseColour-40, sat = 100 },
blue = { hue = baseColour-20, sat = 100 },
magenta = { hue = baseColour-10, sat = 100 },
},
-- the following use the same structure
-- missing fields use `general` as fallback
status = nil,
terminal = nil,
syntax = nil,
},
})
end,
}
local wisteria = {
"masisz/wisteria.nvim",
name = "wisteria",
opts = {
style = "dark", -- "dark" or "light"
transparent = true,
---@type fun(colors:WisteriaColors):HighlightSpec
overrides = function(colors) return {} end,
},
}
local gruvbox = {
'sainnhe/gruvbox-material',
lazy = false,
priority = 1000,
config = function()
-- Optionally configure and load the colorscheme
-- directly inside the plugin declaration.
vim.g.gruvbox_material_enable_italic = true
--vim.cmd.colorscheme('gruvbox-material')
end
}
return {
material,
dracula,
kanagawa,
everforest,
rosepine,
vesper,
aquavium,
bluloco,
farba,
wisteria,
gruvbox
}