First commit

This commit is contained in:
Christoffer Martinsson 2025-08-16 12:16:12 +02:00
parent 12736069ef
commit c9296e7594
10 changed files with 545 additions and 93 deletions

21
LICENSE.txt Normal file
View File

@ -0,0 +1,21 @@
MIT License
Copyright (c) 2023 Alexis Corporal
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

View File

@ -1,93 +0,0 @@
# nightly_cm.nvim
## Getting started
To make it easy for you to get started with GitLab, here's a list of recommended next steps.
Already a pro? Just edit this README.md and make it your own. Want to make it easy? [Use the template at the bottom](#editing-this-readme)!
## Add your files
- [ ] [Create](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#create-a-file) or [upload](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#upload-a-file) files
- [ ] [Add files using the command line](https://docs.gitlab.com/topics/git/add_files/#add-files-to-a-git-repository) or push an existing Git repository with the following command:
```
cd existing_repo
git remote add origin https://git.cmtec.se/cm/nightly_cm.nvim.git
git branch -M main
git push -uf origin main
```
## Integrate with your tools
- [ ] [Set up project integrations](https://git.cmtec.se/cm/nightly_cm.nvim/-/settings/integrations)
## Collaborate with your team
- [ ] [Invite team members and collaborators](https://docs.gitlab.com/ee/user/project/members/)
- [ ] [Create a new merge request](https://docs.gitlab.com/ee/user/project/merge_requests/creating_merge_requests.html)
- [ ] [Automatically close issues from merge requests](https://docs.gitlab.com/ee/user/project/issues/managing_issues.html#closing-issues-automatically)
- [ ] [Enable merge request approvals](https://docs.gitlab.com/ee/user/project/merge_requests/approvals/)
- [ ] [Set auto-merge](https://docs.gitlab.com/user/project/merge_requests/auto_merge/)
## Test and Deploy
Use the built-in continuous integration in GitLab.
- [ ] [Get started with GitLab CI/CD](https://docs.gitlab.com/ee/ci/quick_start/)
- [ ] [Analyze your code for known vulnerabilities with Static Application Security Testing (SAST)](https://docs.gitlab.com/ee/user/application_security/sast/)
- [ ] [Deploy to Kubernetes, Amazon EC2, or Amazon ECS using Auto Deploy](https://docs.gitlab.com/ee/topics/autodevops/requirements.html)
- [ ] [Use pull-based deployments for improved Kubernetes management](https://docs.gitlab.com/ee/user/clusters/agent/)
- [ ] [Set up protected environments](https://docs.gitlab.com/ee/ci/environments/protected_environments.html)
***
# Editing this README
When you're ready to make this README your own, just edit this file and use the handy template below (or feel free to structure it however you want - this is just a starting point!). Thanks to [makeareadme.com](https://www.makeareadme.com/) for this template.
## Suggestions for a good README
Every project is different, so consider which of these sections apply to yours. The sections used in the template are suggestions for most open source projects. Also keep in mind that while a README can be too long and detailed, too long is better than too short. If you think your README is too long, consider utilizing another form of documentation rather than cutting out information.
## Name
Choose a self-explaining name for your project.
## Description
Let people know what your project can do specifically. Provide context and add a link to any reference visitors might be unfamiliar with. A list of Features or a Background subsection can also be added here. If there are alternatives to your project, this is a good place to list differentiating factors.
## Badges
On some READMEs, you may see small images that convey metadata, such as whether or not all the tests are passing for the project. You can use Shields to add some to your README. Many services also have instructions for adding a badge.
## Visuals
Depending on what you are making, it can be a good idea to include screenshots or even a video (you'll frequently see GIFs rather than actual videos). Tools like ttygif can help, but check out Asciinema for a more sophisticated method.
## Installation
Within a particular ecosystem, there may be a common way of installing things, such as using Yarn, NuGet, or Homebrew. However, consider the possibility that whoever is reading your README is a novice and would like more guidance. Listing specific steps helps remove ambiguity and gets people to using your project as quickly as possible. If it only runs in a specific context like a particular programming language version or operating system or has dependencies that have to be installed manually, also add a Requirements subsection.
## Usage
Use examples liberally, and show the expected output if you can. It's helpful to have inline the smallest example of usage that you can demonstrate, while providing links to more sophisticated examples if they are too long to reasonably include in the README.
## Support
Tell people where they can go to for help. It can be any combination of an issue tracker, a chat room, an email address, etc.
## Roadmap
If you have ideas for releases in the future, it is a good idea to list them in the README.
## Contributing
State if you are open to contributions and what your requirements are for accepting them.
For people who want to make changes to your project, it's helpful to have some documentation on how to get started. Perhaps there is a script that they should run or some environment variables that they need to set. Make these steps explicit. These instructions could also be useful to your future self.
You can also document commands to lint the code or run tests. These steps help to ensure high code quality and reduce the likelihood that the changes inadvertently break something. Having instructions for running tests is especially helpful if it requires external setup, such as starting a Selenium server for testing in a browser.
## Authors and acknowledgment
Show your appreciation to those who have contributed to the project.
## License
For open source projects, say how it is licensed.
## Project status
If you have run out of energy or time for your project, put a note at the top of the README saying that development has slowed down or stopped completely. Someone may choose to fork your project or volunteer to step in as a maintainer or owner, allowing your project to keep going. You can also make an explicit request for maintainers.

View File

@ -0,0 +1,2 @@
let s:palette = v:lua.require('lightline.colorscheme.nightly')
let g:lightline#colorscheme#nightly#palette = lightline#colorscheme#fill(s:palette)

1
colors/nightly_cm.lua Normal file
View File

@ -0,0 +1 @@
require("nightly_cm").load()

3
lua/.luarc.json Normal file
View File

@ -0,0 +1,3 @@
{
"workspace.checkThirdParty": false
}

View File

@ -0,0 +1,39 @@
local nightly = {
normal = {
a = { bg = "#87afd7", fg = "#0c0c0c" },
b = { bg = "#303030", fg = "#c6c6c6" },
c = { bg = "#303030", fg = "#c6c6c6" },
},
insert = {
a = { bg = "#afd787", fg = "#0c0c0c" },
b = { bg = "#303030", fg = "#c6c6c6" },
},
command = {
a = { bg = "#d7af5f", fg = "#0c0c0c" },
b = { bg = "#303030", fg = "#c6c6c6" },
},
visual = {
a = { bg = "#87afd7", fg = "#0c0c0c" },
b = { bg = "#303030", fg = "#c6c6c6" },
},
replace = {
a = { bg = "#d75f00", fg = "#0c0c0c" },
b = { bg = "#303030", fg = "#c6c6c6" },
},
terminal = {
a = { bg = "#d7af5f", fg = "#0c0c0c" },
b = { bg = "#303030", fg = "#c6c6c6" },
},
inactive = {
a = { bg = "#303030", fg = "#c6c6c6" },
b = { bg = "#303030", fg = "#c6c6c6" },
c = { bg = "#303030", fg = "#c6c6c6" },
},
}
return nightly

26
lua/nightly_cm/config.lua Normal file
View File

@ -0,0 +1,26 @@
local M = {}
local defaults = {
transparent = false,
styles = {
comments = { italic = true },
functions = { italic = false },
variables = { italic = false },
keywords = { italic = false },
},
highlights = {},
}
M.options = {}
function M.setup(options)
M.options = vim.tbl_deep_extend("force", {}, defaults, options or {})
end
function M.extend(options)
M.options = vim.tbl_deep_extend("force", {}, M.options or defaults, options or {})
end
M.setup()
return M

22
lua/nightly_cm/init.lua Normal file
View File

@ -0,0 +1,22 @@
local config = require "nightly_cm.config"
local M = {}
M.setup = config.setup
function M.load()
-- only needed to clear when not the default colorscheme
if vim.g.colors_name then
vim.cmd "hi clear"
end
-- enable termguicolors
if vim.api.nvim_get_option "termguicolors" == false then
vim.opt.termguicolors = true
end
vim.g.colors_name = "nightly_cm"
require("nightly_cm.theme").setup()
end
return M

View File

@ -0,0 +1,32 @@
local M = {}
M.dark_colors = {
color0 = "#000000",
color1 = "#d75f00",
color2 = "#afd787",
color3 = "#d7af5f",
color4 = "#87afd7",
color5 = "#d7d7af",
color6 = "#87afd7",
color7 = "#c6c6c6",
color8 = "#000000",
color9 = "#d75f00",
color10 = "#afd787",
color11 = "#d7af5f",
color12 = "#87afd7",
color13 = "#d7d7af",
color14 = "#87afd7",
color15 = "#eeeeee",
color16 = "#000000",
color17 = "#585858",
color18 = "#444444",
comment = "#6c6c6c",
black = "#000000",
background = "#262626",
foreground = "#c6c6c6",
cursorline = "#303030",
iblscope = "#435466",
none = "NONE",
}
return M

399
lua/nightly_cm/theme.lua Normal file
View File

@ -0,0 +1,399 @@
local theme = {}
function theme.setup()
local options = require("nightly_cm.config").options
local p = require("nightly_cm.palette").dark_colors
if options.transparent then
p.background = "NONE"
vim.o.pumblend = 0
end
theme.highlights = {
-- Base highlights
Boolean = { fg = p.color5 },
Character = { fg = p.color12 },
ColorColumn = { bg = p.none },
Comment = { fg = p.comment, style = options.styles.comments },
Conceal = { fg = p.color4, bg = p.background },
Conditional = { fg = p.color6 },
Constant = { fg = p.color7 },
Cursor = { fg = p.foreground, bg = p.foreground },
CursorNC = { fg = "NONE", bg = "NONE" },
CurSearch = { link = "IncSearch" },
CursorColumn = { bg = p.background },
CursorIM = { fg = p.foreground, bg = p.foreground },
CursorLine = { bg = p.cursorline },
CursorLineNr = { fg = p.foreground },
Debug = { fg = p.color1 },
Define = { fg = p.color6 },
Delimiter = { fg = p.foreground },
DiffAdd = { fg = p.color4, bg = p.background },
DiffChange = { fg = p.color5, bg = p.background },
DiffDelete = { fg = p.color1, bg = p.background },
DiffText = { fg = p.color5, bg = p.background },
Directory = { fg = p.color4 },
EndOfBuffer = { fg = p.background },
EndOfBufferNC = { fg = p.background },
Error = { fg = p.color1, bg = p.background },
ErrorMsg = { fg = p.color1, bg = p.background },
Exception = { fg = p.color6 },
Float = { fg = p.color5 },
FloatBorder = { fg = p.comment, bg = p.black },
FoldColumn = { fg = p.color4, bg = p.background },
Folded = { fg = p.color4, bg = p.background },
Function = { fg = p.color6, style = options.styles.functions },
Identifier = { fg = p.color5 },
Ignore = { fg = p.color7, bg = p.background },
IncSearch = { fg = p.black, bg = p.color10 },
Include = { fg = p.color6 },
Keyword = { fg = p.color6, style = options.styles.keywords },
Label = { fg = p.color4 },
LineNr = { fg = p.color17 },
Macro = { fg = p.color6 },
MatchParen = { bg = p.color17 },
ModeMsg = { fg = p.foreground, bg = p.background },
MoreMsg = { fg = p.color5 },
MsgArea = { fg = p.foreground, bg = p.background },
MsgSeparator = { fg = p.foreground, bg = p.background },
NonText = { fg = p.color5 },
Normal = { fg = p.foreground, bg = p.background },
NormalFloat = { bg = p.black },
NormalNC = { fg = p.foreground, bg = p.background },
Number = { fg = p.color3 },
Operator = { fg = p.color6 },
Pmenu = { fg = p.foreground, bg = p.black },
PmenuSbar = { bg = p.black },
PmenuSel = { fg = p.black, bg = p.color4 },
PmenuThumb = { bg = p.color2 },
PreCondit = { fg = p.color6 },
PreProc = { fg = p.color6 },
Question = { fg = p.color5 },
QuickFixLine = { bg = p.color2 },
Repeat = { fg = p.color6 },
Search = { fg = p.black, bg = p.color4 },
SignColumn = { fg = p.background, bg = p.background },
Special = { fg = p.color6 },
SpecialChar = { fg = p.foreground },
SpecialComment = { fg = p.color2 },
SpecialKey = { fg = p.color4 },
SpellBad = { fg = p.color2 },
SpellCap = { fg = p.color6 },
SpellLocal = { fg = p.color4 },
SpellRare = { fg = p.color6 },
Statement = { fg = p.color6 },
StatusLine = { fg = p.foreground, bg = p.background },
StStatusLine = { fg = p.foreground, bg = p.background },
Storage = { fg = p.color5 },
StorageClass = { fg = p.color7 },
String = { fg = p.color2 },
Structure = { fg = p.color6 },
Substitute = { fg = p.black, bg = p.color5 },
TabLine = { fg = p.color2, bg = p.color16 },
TabLineFill = { fg = p.foreground, bg = p.color16 },
TabLineSel = { fg = p.foreground, bg = p.background },
Tag = { fg = p.color4 },
TermCursor = { fg = p.foreground, bg = p.foreground },
TermCursorNC = { fg = p.foreground, bg = p.foreground },
Title = { fg = p.color4, bold = true },
Todo = { fg = p.color1, bg = p.background },
type = { fg = p.color5 },
typedef = { fg = p.color6 },
underlined = { fg = p.color2, underline = true },
Variable = { fg = p.color15 },
VertSplit = { fg = p.cursorline },
Visual = { bg = p.color18 },
VisualNOS = { bg = p.background },
WarningMsg = { fg = p.color3, bg = p.background },
Whitespace = { fg = p.color1 },
WildMenu = { fg = p.color7, bg = p.color4 },
lCursor = { fg = p.foreground, bg = p.foreground },
WinSeparator = { fg = p.cursorline },
-- bufferline.nvim: https://github.com/akinsho/bufferline.nvim
BufferLineFill = { fg = p.background, bg = p.background },
BufferLineIndicatorSelected = { fg = p.color2 },
-- Diagnostic
DiagnosticError = { fg = p.color1 },
DiagnosticHint = { fg = p.color2 },
DiagnosticInfo = { fg = p.color4 },
DiagnosticWarn = { fg = p.color3 },
DiagnosticUnnecessary = { fg = p.none },
-- diff
diffAdded = { fg = p.color4 },
diffChanged = { fg = p.color5 },
diffFile = { fg = p.color7 },
diffIndexLine = { fg = p.color6 },
diffLine = { fg = p.color5 },
diffNewFile = { fg = p.color5 },
diffOldFile = { fg = p.color5 },
diffRemoved = { fg = p.color1 },
-- gitsigns: https://github.com/lewis6991/gitsigns.nvim
GitSignsAdd = { fg = p.color2 },
GitSignsChange = { fg = p.color3 },
GitSignsDelete = { fg = p.color1 },
-- indent-blankline.nvim: https://github.com/lukas-reineke/indent-blankline.nvim
IblIndent = { fg = p.cursorline },
IblScope = { fg = p.color17 },
-- LSP
LspInfoFiletype = { fg = p.color15 },
LspReferenceText = { bg = p.color4 },
LspReferenceRead = { bg = p.color4 },
LspReferenceWrite = { bg = p.color4 },
LspInfoBorder = { link = "FloatBorder" },
-- lspsaga.nvim: https://github.com/glepnir/lspsaga.nvim
DefinitionCount = { fg = p.color6 },
DefinitionIcon = { fg = p.color7 },
LspFloatWinBorder = { link = "FloatBorder" },
LspFloatWinNormal = { bg = p.black },
LspSagaBorderTitle = { fg = p.color7 },
LspSagaCodeActionBorder = { link = "FloatBorder" },
LspSagaCodeActionContent = { fg = p.color6 },
LspSagaCodeActionTitle = { fg = p.color7 },
LspSagaDefPreviewBorder = {},
LspSagaFinderSelection = { fg = p.color5 },
LspSagaHoverBorder = { link = "FloatBorder" },
LspSagaRenameBorder = { link = "FloatBorder" },
LspSagaSignatureHelpBorder = { link = "FloatBorder" },
ReferencesCount = { fg = p.color6 },
ReferencesIcon = { fg = p.color7 },
TargetWord = { fg = p.color7 },
-- Neogit: https://github.com/TimUntersberger/neogit
NeogitBranch = { fg = p.color6 },
NeogitDiffAddHighlight = { fg = p.color4, bg = p.background },
NeogitDiffContextHighlight = { bg = p.background, fg = p.foreground },
NeogitDiffDeleteHighlight = { fg = p.color1, bg = p.background },
NeogitHunkHeader = { bg = p.black, fg = p.foreground },
NeogitHunkHeaderHighlight = { bg = p.comment, fg = p.color7 },
NeogitRemote = { fg = p.color6 },
-- Neovim
healthError = { fg = p.color1 },
healthSuccess = { fg = p.color4 },
healthWarning = { fg = p.color3 },
-- nvim-cmp: https://github.com/hrsh7th/nvim-cmp
CmpDocumentationBorder = { fg = p.color17, bg = p.black },
CmpItemAbbr = { fg = p.foreground, bg = "NONE" },
CmpItemAbbrDeprecated = { fg = p.color2, bg = "NONE" },
CmpItemAbbrMatch = { fg = p.color2, bg = "NONE" },
CmpItemAbbrMatchFuzzy = { fg = p.color2, bg = "NONE" },
CmpItemKind = { fg = p.color4, bg = p.black },
CmpItemMenu = { fg = p.color2, bg = "NONE" },
CmpItemKindFolder = { fg = p.color4 },
CmpItemKindFile = { fg = p.color2 },
CmpItemKindConstructor = { fg = p.color5 },
CmpItemKindInterface = { fg = p.color5 },
CmpItemKindReference = { fg = p.color5 },
CmpItemKindConstant = { fg = p.color5 },
CmpItemKindProperty = { fg = p.color5 },
CmpItemKindModule = { fg = p.color5 },
CmpItemKindClass = { fg = p.color5 },
CmpItemKindField = { fg = p.color5 },
CmpItemKindEvent = { fg = p.color5 },
CmpItemKindSnippet = { fg = p.color4 },
CmpItemKindKeyword = { fg = p.color4 },
CmpItemKindValue = { fg = p.color4 },
CmpItemKindOperator = { fg = p.color4 },
CmpItemKindTypeParameter = { fg = p.foreground },
CmpItemKindVariable = { fg = p.foreground },
CmpItemKindText = { fg = p.foreground },
CmpItemKindUnit = { fg = p.foreground },
-- Yank
YankyPut = { link = "Visual" },
YankyYanked = { link = "Visual" },
YankHighlight = { bg = p.cursorline },
-- Markdown
markdownCodeBlock = { fg = p.color7 },
markdownCodeDelimeter = { fg = p.color7 },
markdownUrl = { fg = p.color15 },
markdownLink = { fg = p.foreground, underline = true },
-- nvim-tree.lua: https://github.com/nvim-tree/nvim-tree.lua
NvimTreeEmptyFolderName = { fg = p.foreground },
NvimTreeEndOfBuffer = { fg = p.background, bg = p.background },
NvimTreeEndOfBufferNC = { fg = p.background, bg = p.background },
NvimTreeFolderIcon = { fg = p.color4, bg = p.background },
NvimTreeFolderName = { fg = p.foreground },
NvimTreeGitDeleted = { fg = p.color1 },
NvimTreeGitDirty = { fg = p.color5 },
NvimTreeGitNew = { fg = p.color4 },
NvimTreeImageFile = { fg = p.foreground },
NvimTreeIndentMarker = { fg = p.color0 },
NvimTreeNormal = { fg = p.foreground, bg = p.background },
NvimTreeNormalNC = { fg = p.foreground, bg = p.background },
NvimTreeOpenedFolderName = { fg = p.foreground },
NvimTreeRootFolder = { fg = p.color12 },
NvimTreeSpecialFile = { fg = p.color5 },
NvimTreeStatusLineNC = { bg = p.background, fg = p.color16 },
NvimTreeSymlink = { fg = p.color3 },
NvimTreeWinSeparator = { fg = p.black },
-- nvim-treesitter: https://github.com/nvim-treesitter/nvim-treesitter
["@attribute"] = { fg = p.color4 },
["@boolean"] = { fg = p.color6 },
["@character"] = { fg = p.color4 },
["@comment"] = { fg = p.comment, style = options.styles.comments },
["@conditional"] = { fg = p.color4 },
["@constant"] = { fg = p.color6 },
["@constant.builtin"] = { fg = p.color4 },
["@constant.macro"] = { fg = p.color3 },
["@constructor"] = { fg = p.color4 },
["@exception"] = { fg = p.color11 },
["@field"] = { fg = p.color7 },
["@float"] = { link = "@number" },
["@function"] = { fg = p.color4, style = options.styles.functions },
["@function.builtin"] = { fg = p.color14 },
["@function.macro"] = { fg = p.color2 },
["@include"] = { fg = p.color3 },
["@keyword"] = { fg = p.color15, style = options.styles.keywords },
["@keyword.function"] = { fg = p.color4, style = options.styles.functions },
["@keyword.operator"] = { fg = p.color12 },
["@keyword.return"] = { fg = p.color4 },
["@label"] = { fg = p.color3 },
["@method"] = { fg = p.color12 },
["@namespace"] = { fg = p.color5 },
["@number"] = { fg = p.color15 },
["@operator"] = { fg = p.color7 },
["@parameter"] = { fg = p.color15 },
["@parameter.reference"] = { fg = p.color15 },
["@property"] = { fg = p.color5 },
["@punctuation.bracket"] = { fg = p.color7 },
["@punctuation.delimiter"] = { fg = p.color7 },
["@punctuation.special"] = { fg = p.color7 },
["@repeat"] = { fg = p.color13 },
["@string"] = { fg = p.color2 },
["@string.escape"] = { fg = p.color4 },
["@string.regex"] = { fg = p.color2 },
["@string.special"] = { fg = p.color4 },
["@symbol"] = { fg = p.color3 },
["@tag"] = { fg = p.color4 },
["@tag.attribute"] = { fg = p.color3 },
["@tag.delimiter"] = { fg = p.color7 },
["@text"] = { fg = p.color7 },
["@text.danger"] = { fg = p.color9 },
["@text.emphasis"] = { fg = p.color7, italic = true },
["@text.environment.name"] = { fg = p.color3 },
["@text.environtment"] = { fg = p.color5 },
["@text.literal"] = { fg = p.color2, italic = true },
["@text.math"] = { fg = p.color6 },
["@text.note"] = { fg = p.black, bg = p.color2 },
["@text.reference"] = { fg = p.color6 },
["@text.strike"] = { fg = p.color7, strikethrough = true },
["@text.strong"] = { fg = p.color7, bold = true },
["@text.title"] = { fg = p.color3, bold = true },
["@text.underline"] = { fg = p.color15, underline = true },
["@text.uri"] = { fg = p.color3, underline = true },
["@text.warning"] = { fg = p.color0, bg = p.color1 },
["@type"] = { fg = p.color4 },
["@type.builtin"] = { fg = p.color3 },
["@variable"] = { fg = p.color7, style = options.styles.variables },
["@variable.builtin"] = { fg = p.color4 },
-- LSP semantic tokens
-- ["@lsp.type.comment"] = { link = "@comment" },
-- ["@lsp.type.enum"] = { link = "@type" },
-- ["@lsp.type.interface"] = { link = "Identifier" },
-- ["@lsp.type.keyword"] = { link = "@keyword" },
-- ["@lsp.type.namespace"] = { link = "@namespace" },
-- ["@lsp.type.parameter"] = { link = "@parameter" },
-- ["@lsp.type.property"] = { link = "@property" },
-- ["@lsp.type.variable"] = {}, -- use treesitter styles for regular variables
-- ["@lsp.typemod.method.defaultLibrary"] = { link = "@function.builtin" },
-- ["@lsp.typemod.function.defaultLibrary"] = { link = "@function.builtin" },
-- ["@lsp.typemod.operator.injected"] = { link = "@operator" },
-- ["@lsp.typemod.string.injected"] = { link = "@string" },
-- ["@lsp.typemod.variable.defaultLibrary"] = { link = "@variable.builtin" },
-- ["@lsp.typemod.variable.injected"] = { link = "@variable" },
-- alpha.nvim: https://github.com/goolord/alpha-nvim
AlphaHeader = { fg = p.color2 },
AlphaButton = { fg = p.color4 },
AlphaFooter = { fg = p.color3 },
AlphaShortcut = { fg = p.color5 },
-- dashboard.nvim: https://github.com/nvimdev/dashboard-nvim
DashboardHeader = { fg = p.color2 },
DashboardCenter = { fg = p.color4 },
DashboardFooter = { fg = p.color3 },
DashboardShortcut = { fg = p.color5 },
-- telescope.nvim: https://github.com/nvim-telescope/telescope.nvim
TelescopeMatching = { fg = p.color2 },
TelescopeSelection = { fg = p.color2, bg = p.bg },
TelescopeMultiSelection = { bg = p.color16 },
TelescopePromptTitle = { fg = p.background, bg = p.color2 },
TelescopePreviewLine = { bg = p.background },
TelescopePromptPrefix = { fg = p.color2, bg = p.cursorline },
TelescopePromptBorder = { fg = p.cursorline, bg = p.cursorline },
TelescopePromptNormal = { fg = p.fg, bg = p.cursorline },
TelescopeResultsTitle = { fg = p.color16, bg = p.color16 },
TelescopeResultsBorder = { fg = p.color16, bg = p.color16 },
TelescopeResultsNormal = { fg = p.foreground, bg = p.color16 },
TelescopePreviewTitle = { fg = p.cursorline, bg = p.color3 },
TelescopePreviewBorder = { fg = p.cursorline, bg = p.cursorline },
TelescopePreviewNormal = { fg = p.foreground, bg = p.cursorline },
-- trouble.nvim: https://github.com/folke/trouble.nvim
LspTroubleCount = { fg = p.color6, bg = p.foreground },
LspTroubleNormal = { fg = p.foreground, bg = p.background },
LspTroubleText = { fg = p.foreground },
-- vim-gitgutter: https://github.com/airblade/vim-gitgutter
GitGutterAdd = { fg = p.color2 },
GitGutterChange = { fg = p.color3 },
GitGutterDelete = { fg = p.color1 },
}
theme.terminal_colors = {
terminal_color_0 = p.color0,
terminal_color_1 = p.color1,
terminal_color_2 = p.color2,
terminal_color_3 = p.color3,
terminal_color_4 = p.color4,
terminal_color_5 = p.color5,
terminal_color_6 = p.color6,
terminal_color_7 = p.color7,
terminal_color_8 = p.color8,
terminal_color_9 = p.color9,
terminal_color_10 = p.color10,
terminal_color_11 = p.color11,
terminal_color_12 = p.color12,
terminal_color_13 = p.color13,
terminal_color_14 = p.color14,
terminal_color_15 = p.color15,
}
for option, value in pairs(theme.terminal_colors) do
vim.g[option] = value
end
theme.highlights = vim.tbl_extend("force", {}, theme.highlights, options.highlights)
-- Hide all semantic highlights
for _, group in ipairs(vim.fn.getcompletion("@lsp", "highlight")) do
vim.api.nvim_set_hl(0, group, {})
end
-- Set the highlights
for group, colors in pairs(theme.highlights) do
if colors.style then
if type(colors.style) == "table" then
colors = vim.tbl_extend("force", colors, colors.style)
end
colors.style = nil
end
vim.api.nvim_set_hl(0, group, colors)
end
end
return theme