Skip to content

Commit

Permalink
initial import
Browse files Browse the repository at this point in the history
  • Loading branch information
gorillamoe committed Sep 20, 2024
0 parents commit 8587d38
Show file tree
Hide file tree
Showing 28 changed files with 2,277 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# Compiled Lua sources
luac.out

# luarocks build files
*.src.rock
*.zip
*.tar.gz

# Object files
*.o
*.os
*.ko
*.obj
*.elf

# Precompiled Headers
*.gch
*.pch

# Libraries
*.lib
*.a
*.la
*.lo
*.def
*.exp

# Shared objects (inc. Windows DLLs)
*.dll
*.so
*.so.*
*.dylib

# Executables
*.exe
*.out
*.app
*.i*86
*.x86_64
*.hex

.DS_Store

# nvim session management
.nvim
20 changes: 20 additions & 0 deletions .luacheckrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
stds.nvim = {
read_globals = { "jit" },
}

std = "lua51+nvim"

read_globals = {
"vim",
}

globals = {
"vim.g",
"vim.b",
"vim.w",
"vim.o",
"vim.bo",
"vim.wo",
"vim.go",
"vim.env",
}
15 changes: 15 additions & 0 deletions .luarc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"$schema": "https://raw.githubusercontent.com/sumneko/vscode-lua/master/setting/schema.json",
"runtime.version": "LuaJIT",
"diagnostics.globals": [
"vim"
],
"runtime.settings.path": [
"?.lua",
"?/init.lua"
],
"workspace.checkThirdParty": false,
"workspace.library": [
"$VIMRUNTIME"
]
}
5 changes: 5 additions & 0 deletions .yamllint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
extends: default
rules:
truthy:
check-keys: false
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2024 mistweaver.co

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.
47 changes: 47 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
<div align="center">

![retro theme Logo](logo.svg)

# retro-theme.nvim

![Lua](https://img.shields.io/badge/Made%20with%20Lua-blueviolet.svg?style=for-the-badge&logo=lua)
[![GitHub release (latest by date)](https://img.shields.io/github/v/release/mistweaverco/retro-theme.nvim?style=for-the-badge)](https://github.com/mistweaverco/retro-theme.nvim/releases/latest)
[![Discord](https://img.shields.io/badge/discord-join-7289da?style=for-the-badge&logo=discord)](https://discord.gg/QyVQmfY4Rt)

[Requirements](#requirements)[Install](#install)[Configuration](#configuration)

<p></p>

A minimal retro theme for Neovim.

<p></p>

</div>

## Requirements

> [!WARNING]
> Requires Neovim 0.10.0+.
## Install

Via [lazy.nvim](https://github.com/folke/lazy.nvim):

```lua
{ 'mistweaverco/retro-theme.nvim' },
```
See [configuration options](#configuration) for more information.

## Configuration

```lua
{
'mistweaverco/retro-theme.nvim',
opts = {
italic_comments = true,
disable_cache = false,
hot_reload = false,
}
},
```

1 change: 1 addition & 0 deletions colors/retro-theme.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
require('retro-theme').load()
Binary file added logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
112 changes: 112 additions & 0 deletions logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
47 changes: 47 additions & 0 deletions lua/lualine/themes/retro-theme.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
local t = {
bg = "#1c1e26",
fg = "#c8d0e0",
normalFG = "#c8d0e0",
green = "#00ffbf",
red = "#ff445d",
purple = "#bd93f9",
blue = "#00dfff",
blueDark = "#336699",
grey3 = "#1b1d23",
grey5 = "#2d333e",
grey7 = "#384252",
grey20 = "#4a5a73",
}

return {
normal = {
a = { bg = t.blue, fg = t.bg },
b = { bg = t.grey7, fg = t.fg },
c = { bg = t.grey3, fg = t.fg }
},
insert = {
a = { bg = t.blueDark, fg = t.bg },
b = { bg = t.grey7, fg = t.blueDark },
c = { bg = t.grey3, fg = t.fg }
},
visual = {
a = { bg = t.purple, fg = t.bg },
b = { bg = t.grey7, fg = t.purple },
c = { bg = t.grey3, fg = t.fg }
},
replace = {
a = { bg = t.red, fg = t.bg },
b = { bg = t.grey7, fg = t.red },
c = { bg = t.grey3, fg = t.fg }
},
command = {
a = { bg = t.green, fg = t.bg },
b = { bg = t.grey7, fg = t.green },
c = { bg = t.grey3, fg = t.fg }
},
inactive = {
a = { bg = t.grey20, fg = t.grey3, },
b = { bg = t.grey5, fg = t.grey20 },
c = { bg = t.grey5, fg = t.grey20 }
}
}
2 changes: 2 additions & 0 deletions lua/retro-theme/cache/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*
!.gitignore
16 changes: 16 additions & 0 deletions lua/retro-theme/colorscheme.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
local cache = require("retro-theme.lib.cache")
local colors = {}

if cache.exists() then
colors = cache.read()
else
colors = require("retro-theme.palette.colors")
cache.write(colors)
end

vim.cmd("highlight clear")
vim.cmd("set t_Co=256")

for group, attrs in pairs(colors) do
vim.api.nvim_set_hl(0, group, attrs)
end
Loading

0 comments on commit 8587d38

Please sign in to comment.