mirror of
https://github.com/harivansh-afk/nix.git
synced 2026-04-15 10:05:17 +00:00
theme and scripts
This commit is contained in:
parent
deade2bafb
commit
7ae7c1ceec
17 changed files with 575 additions and 270 deletions
|
|
@ -1,74 +1,49 @@
|
|||
return {
|
||||
{
|
||||
'harivansh-afk/cozybox.nvim',
|
||||
lazy = false,
|
||||
priority = 1000,
|
||||
config = function()
|
||||
local function apply_cozybox_overrides()
|
||||
local links = {
|
||||
{ 'DiffsAdd', 'DiffAdd' },
|
||||
{ 'DiffsDelete', 'DiffDelete' },
|
||||
{ 'DiffsChange', 'DiffChange' },
|
||||
{ 'DiffsText', 'DiffText' },
|
||||
{ 'DiffsClear', 'Normal' },
|
||||
}
|
||||
for _, pair in ipairs(links) do
|
||||
vim.api.nvim_set_hl(0, pair[1], { link = pair[2], default = false })
|
||||
end
|
||||
end
|
||||
|
||||
vim.api.nvim_create_augroup('cozybox_fallback_highlights', { clear = true })
|
||||
vim.api.nvim_create_autocmd('ColorScheme', {
|
||||
group = 'cozybox_fallback_highlights',
|
||||
callback = function()
|
||||
if vim.g.colors_name == 'cozybox' then
|
||||
apply_cozybox_overrides()
|
||||
end
|
||||
end,
|
||||
})
|
||||
|
||||
vim.cmd.colorscheme('cozybox')
|
||||
apply_cozybox_overrides()
|
||||
end,
|
||||
},
|
||||
{
|
||||
'nvim-lualine/lualine.nvim',
|
||||
dependencies = { 'nvim-tree/nvim-web-devicons' },
|
||||
config = function()
|
||||
local theme = {
|
||||
normal = {
|
||||
a = { gui = 'bold' },
|
||||
},
|
||||
visual = {
|
||||
a = { gui = 'bold' },
|
||||
},
|
||||
replace = {
|
||||
a = { gui = 'bold' },
|
||||
},
|
||||
command = {
|
||||
a = { gui = 'bold' },
|
||||
},
|
||||
}
|
||||
require('lualine').setup({
|
||||
options = {
|
||||
icons_enabled = false,
|
||||
component_separators = '',
|
||||
section_separators = { left = '', right = '' },
|
||||
theme = theme,
|
||||
},
|
||||
sections = {
|
||||
lualine_a = { 'mode' },
|
||||
lualine_b = { 'FugitiveHead', 'diff' },
|
||||
lualine_c = { { 'filename', path = 0 } },
|
||||
lualine_x = { 'diagnostics' },
|
||||
lualine_y = { 'filetype' },
|
||||
lualine_z = { 'progress' },
|
||||
},
|
||||
})
|
||||
end,
|
||||
},
|
||||
{
|
||||
'barrettruth/nonicons.nvim',
|
||||
dependencies = { 'nvim-tree/nvim-web-devicons' },
|
||||
},
|
||||
{
|
||||
dir = vim.fn.expand "~/Documents/GitHub/cozybox.nvim",
|
||||
name = "cozybox.nvim",
|
||||
lazy = false,
|
||||
priority = 1000,
|
||||
config = function() require("theme").setup() end,
|
||||
},
|
||||
{
|
||||
"nvim-lualine/lualine.nvim",
|
||||
dependencies = { "nvim-tree/nvim-web-devicons" },
|
||||
config = function()
|
||||
local theme = {
|
||||
normal = {
|
||||
a = { gui = "bold" },
|
||||
},
|
||||
visual = {
|
||||
a = { gui = "bold" },
|
||||
},
|
||||
replace = {
|
||||
a = { gui = "bold" },
|
||||
},
|
||||
command = {
|
||||
a = { gui = "bold" },
|
||||
},
|
||||
}
|
||||
require("lualine").setup {
|
||||
options = {
|
||||
icons_enabled = false,
|
||||
component_separators = "",
|
||||
section_separators = { left = "", right = "" },
|
||||
theme = theme,
|
||||
},
|
||||
sections = {
|
||||
lualine_a = { "mode" },
|
||||
lualine_b = { "FugitiveHead", "diff" },
|
||||
lualine_c = { { "filename", path = 0 } },
|
||||
lualine_x = { "diagnostics" },
|
||||
lualine_y = { "filetype" },
|
||||
lualine_z = { "progress" },
|
||||
},
|
||||
}
|
||||
end,
|
||||
},
|
||||
{
|
||||
"barrettruth/nonicons.nvim",
|
||||
dependencies = { "nvim-tree/nvim-web-devicons" },
|
||||
},
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue