update.sh

This commit is contained in:
Ray Elliott 2022-03-13 19:41:41 +00:00
parent ff8abed01e
commit c0546d77bd
1 changed files with 728 additions and 687 deletions

View File

@ -1,15 +1,12 @@
-- This file should be edited by the user. Read the instructions of each section and then edit them as desired.
--[[ Highlite, a Neovim colorscheme template.
* Author: Iron-E (https://github.com/Iron-E)
* Repository: https://github.com/nvim-paper-tonic
* Repository: https://github.com/Iron-E/nvim-highlite
Initially forked from vim-rnb, a Vim colorsheme template:
* Author: Romain Lafourcade (https://github.com/romainl)
* Canonical URL: https://github.com/romainl/vim-rnb
]]
--[[ Introduction
]] --[[ Introduction
This template is designed to help Neovim users create their own colorschemes without much effort.
You will not need any additional tooling to run this file. Just open it in Neovim and follow the instructions.
@ -20,9 +17,7 @@
3. Define your colors,
4. Define your highlight groups and links, and
5. Sourcing your colorscheme.
]]
--[[ Step 1: Renaming
]] --[[ Step 1: Renaming
* If this file is distributed with a colorscheme it's probably already named correctly
and you can skip this step.
* If you forked/cloned/copied this repository to create your own colorscheme, you will have to
@ -46,17 +41,12 @@
TIP: If you are on a Unix-based system (or have WSL on Windows) you can use the setup script at the root of this repo.
See the README for more details.
]]
--[[ Step 2: Information
]] --[[ Step 2: Information
In this step you will define information that helps Neovim process:
1. How users access your colorscheme;
2. How your colorscheme should be rendered.
]]
-- This is the name of your colorscheme which will be used as per |g:colors_name|.
]] -- This is the name of your colorscheme which will be used as per |g:colors_name|.
vim.g.colors_name = 'paper-tonic'
--[[ Step 3: Colors
@ -267,7 +257,7 @@ local highlight_group_normal = {fg=c_fg, bg=c_bg}
-- This is where the rest of your highlights should go.
local highlight_groups = {
--[[ 4.1. Text Analysis ]]
Comment = {fg=c_fg_weaker, style='italic'},
Comment = {fg = c_fg_weaker, style = 'italic,bold'},
NonText = {fg = c_fg_weak},
EndOfBuffer = 'Comment',
Whitespace = 'NonText',
@ -373,11 +363,14 @@ local highlight_groups = {
--[[ 4.2.7. Searching]]
IncSearch = {style = 'inverse'},
MatchParen = {bg=c_bg_hl_special_alt_strong, style={'bold', 'underline', color=c_fg_stronger}},
MatchParen = {
bg = c_bg_hl_special_alt_strong,
style = {'bold', 'underline', color = c_fg_stronger}
},
Search = {bg = c_bg_hl_special},
--[[ 4.2.8. Spelling]]
SpellBad = {bg=c_bg_error_weak, fg=c_alert_strong,},
SpellBad = {bg = c_bg_error_weak, fg = c_alert_strong},
SpellCap = {bg = c_bg_error_weak, fg = c_alert},
SpellLocal = {bg = c_bg_error_weak, fg = c_alert_weak},
SpellRare = {bg = c_bg_error_weak, fg = c_alert_weak},
@ -638,7 +631,12 @@ local highlight_groups = {
mkdItalic = 'mkdBold',
mkdLineBreak = 'NonText',
mkdListItem = 'Special',
mkdRule = function(self) return {fg=self.Ignore.fg, style={'underline', color=self.Delimiter.fg}} end,
mkdRule = function(self)
return {
fg = self.Ignore.fg,
style = {'underline', color = self.Delimiter.fg}
}
end,
mkdSnippetPHP = 'mkdCode',
--[[ 4.3.20. Python ]]
@ -873,13 +871,17 @@ local highlight_groups = {
--[[ 4.4.9. barbar.nvim ]]
BufferCurrent = 'TabLineSel',
BufferCurrentIndex = function(self) return {fg=self.InfoMsg.fg, bg=self.BufferCurrent.bg} end,
BufferCurrentIndex = function(self)
return {fg = self.InfoMsg.fg, bg = self.BufferCurrent.bg}
end,
BufferCurrentMod = {fg = c_modified, bg = c_bg, style = 'bold'},
BufferCurrentSign = 'HintMsg',
BufferCurrentTarget = 'BufferCurrentSign',
BufferInactive = 'BufferVisible',
BufferInactiveIndex = function(self) return {fg=self.InfoMsg.fg, bg=self.BufferInactive.bg} end,
BufferInactiveIndex = function(self)
return {fg = self.InfoMsg.fg, bg = self.BufferInactive.bg}
end,
BufferInactiveMod = 'BufferVisibleMod',
BufferInactiveSign = 'BufferVisibleSign',
BufferInactiveTarget = 'BufferVisibleTarget',
@ -888,7 +890,9 @@ local highlight_groups = {
-- BufferTabpageFill = 'TabLineFill',
BufferVisible = 'TabLine',
BufferVisibleIndex = function(self) return {fg=self.InfoMsg.fg, bg=self.BufferVisible.bg} end,
BufferVisibleIndex = function(self)
return {fg = self.InfoMsg.fg, bg = self.BufferVisible.bg}
end,
BufferVisibleMod = {fg = white, bg = c_bg_darkest, style = 'italic'},
BufferVisibleSign = 'BufferVisible',
BufferVisibleTarget = function(self)
@ -917,7 +921,9 @@ local highlight_groups = {
IndentBlanklineSpaceChar = 'IndentBlanklineChar',
--[[ 4.4.14. trouble.nvim ]]
TroubleCount = function(self) return vim.tbl_extend('force', self.Number, {style='underline'}) end,
TroubleCount = function(self)
return vim.tbl_extend('force', self.Number, {style = 'underline'})
end,
--[[ 4.4.14. todo-comments.nvim ]]
TodoFgFIX = function(self) return {fg = self.ErrorMsg.fg} end,
@ -927,12 +933,44 @@ local highlight_groups = {
TodoFgTODO = function(_) return {fg = cyan, style = 'italic'} end,
TodoFgWARN = function(self) return {fg = self.WarningMsg.fg} end,
TodoBgFIX = function(self) return {fg=c_bg, bg=self.ErrorMsg.fg, style={'bold', 'italic', 'nocombine'}} end,
TodoBgHACK = function(self) return {fg=c_bg, bg=self.Todo.fg, style={'bold', 'italic', 'nocombine'}} end,
TodoBgNOTE = function(self) return {fg=c_bg, bg=self.Hint.bg, style={'bold', 'italic', 'nocombine'}} end,
TodoBgPERF = function(self) return {fg=c_bg, bg=self.Info.bg, style={'bold', 'italic', 'nocombine'}} end,
TodoBgTODO = function(_) return {fg=c_bg, bg=cyan, style={'bold', 'italic', 'nocombine'}} end,
TodoBgWARN = function(self) return {fg=c_bg, bg=self.Warning.bg, style={'bold', 'italic', 'nocombine'}} end,
TodoBgFIX = function(self)
return {
fg = c_bg,
bg = self.ErrorMsg.fg,
style = {'bold', 'italic', 'nocombine'}
}
end,
TodoBgHACK = function(self)
return {
fg = c_bg,
bg = self.Todo.fg,
style = {'bold', 'italic', 'nocombine'}
}
end,
TodoBgNOTE = function(self)
return {
fg = c_bg,
bg = self.Hint.bg,
style = {'bold', 'italic', 'nocombine'}
}
end,
TodoBgPERF = function(self)
return {
fg = c_bg,
bg = self.Info.bg,
style = {'bold', 'italic', 'nocombine'}
}
end,
TodoBgTODO = function(_)
return {fg = c_bg, bg = cyan, style = {'bold', 'italic', 'nocombine'}}
end,
TodoBgWARN = function(self)
return {
fg = c_bg,
bg = self.Warning.bg,
style = {'bold', 'italic', 'nocombine'}
}
end,
TodoSignFIX = 'TodoFgFIX',
TodoSignHACK = 'TodoFgHACK',
@ -955,12 +993,18 @@ local highlight_groups = {
packerPackageNotLoaded = 'Ignore',
packerStatusFail = 'Statement',
packerStatusSuccess = 'packerStatusFail',
packerSuccess = function(self) return {fg=c_success, style=self.packerFail.style} end,
packerSuccess = function(self)
return {fg = c_success, style = self.packerFail.style}
end,
-- [[ 5.0.1 custom ]]
TabLineFill = 'StatusLine',
TabLineItem = {fg = c_fg, bg = c_bg_ui, style = 'italic'},
TabLineItemSel = {fg=c_fg_strong, bg=c_bg_ui, style={'italic', 'bold'}},
TabLineItemSel = {
fg = c_fg_strong,
bg = c_bg_ui,
style = {'italic', 'bold'}
},
TabLineNum = {fg = c_fg_weak, bg = c_bg_ui},
TabLineNumSel = {fg = c_fg_weak, bg = c_bg_ui}
}
@ -1080,10 +1124,7 @@ local terminal_colors = {
is correctly set up if they want to enjoy the best possible experience.
]]
require(vim.g.colors_name)(
highlight_group_normal,
highlight_groups,
terminal_colors
)
require(vim.g.colors_name)(highlight_group_normal, highlight_groups,
terminal_colors)
-- Thanks to Romain Lafourcade (https://github.com/romainl) for the original template (romainl/vim-rnb).