This repository has been archived by the owner on Oct 9, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
VDuchauffour
committed
Mar 29, 2022
1 parent
7f88b72
commit 7ec5f65
Showing
31 changed files
with
933 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: Linting | ||
|
||
on: | ||
push: | ||
branches: [main, dev] | ||
pull_request: | ||
paths-ignore: | ||
- "**.md" | ||
- LICENSE | ||
branches: [main] | ||
|
||
jobs: | ||
build: | ||
name: Luacheck | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Install linter | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install luarocks | ||
sudo luarocks install luacheck | ||
- name: Lint | ||
run: luacheck --config=.luacheckrc . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
-- Global objects | ||
globals = { | ||
"PACKER_BOOTSTRAP", | ||
"_LAZYGIT_TOGGLE", | ||
"_PYTHON_TOGGLE", | ||
"_NODE_TOGGLE", | ||
"_NCDU_TOGGLE", | ||
"_HTOP_TOGGLE", | ||
"vim", | ||
"C", | ||
} | ||
|
||
-- Rerun tests only if their modification time changed | ||
cache = true | ||
|
||
-- Don't report unused self arguments of methods | ||
self = false | ||
|
||
ignore = { | ||
"631", -- max_line_length | ||
"212/_.*", -- unused argument, for vars with "_" prefix | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.1.0 | ||
hooks: | ||
- id: check-added-large-files | ||
- id: check-case-conflict | ||
- id: check-executables-have-shebangs | ||
- id: check-json | ||
- id: check-merge-conflict | ||
- id: check-symlinks | ||
- id: check-toml | ||
- id: check-vcs-permalinks | ||
- id: check-xml | ||
- id: check-yaml | ||
- id: destroyed-symlinks | ||
- id: end-of-file-fixer | ||
- id: fix-byte-order-marker | ||
- id: trailing-whitespace | ||
- repo: https://github.com/lunarmodules/luacheck.git | ||
rev: master | ||
hooks: | ||
- id: luacheck | ||
- repo: https://github.com/JohnnyMorganz/StyLua.git | ||
rev: v0.12.4 | ||
hooks: | ||
- id: stylua |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
indent_type = "Spaces" | ||
indent_width = 2 | ||
column_width = 120 | ||
quote_style = "AutoPreferSingle" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
<h2 align>neodark.nvim</h2> | ||
<p align=center>Simple onedark based colorscheme for Neovim.</p> | ||
<div align=center> | ||
<a href="#Introduction">Introduction</a> | ||
<span> • </span> | ||
<a href="#Installation-and-usage">Installation and usage</a> | ||
<span> • </span> | ||
<a href="#Plugin-support">Plugin support</a> | ||
<span> • </span> | ||
<a href="#Terminal-themes">Terminal themes</a> | ||
<span> • </span> | ||
<a href="#Acknowledgements">Acknowledgements</a> | ||
<p></p> | ||
</div> | ||
|
||
![alt text](showcase.png?raw=true "Showcase") | ||
|
||
### Introduction | ||
|
||
This theme provide the [AstroVim](https://github.com/kabinspace/AstroVim) colorscheme, itself based on the [Onedark](https://atom.io/themes/one-dark-ui) theme. | ||
A _darker_ version of this theme is also provided. | ||
|
||
> Created this because I'm a [LunarVim](https://github.com/LunarVim/LunarVim) user. | ||
### Installation and usage | ||
|
||
Install the theme with your preferred package manager: | ||
|
||
[packer](https://github.com/wbthomason/packer.nvim) | ||
|
||
```lua | ||
use "VDuchauffour/neodark.nvim" | ||
``` | ||
|
||
#### Usage | ||
|
||
- In vimscript: | ||
|
||
```vim | ||
colorscheme onedarker | ||
``` | ||
|
||
- In lua: | ||
|
||
```lua | ||
vim.cmd 'colorscheme onedarker' | ||
-- Or | ||
require("github-theme").setup({ | ||
theme_style = "neodarker" | ||
}) | ||
``` | ||
|
||
### Plugin support | ||
|
||
- File explorer with [Nvimtree](https://github.com/kyazdani42/nvim-tree.lua) | ||
- Language Server Protocol with [Native LSP](https://github.com/neovim/nvim-lspconfig) | ||
- Syntax highlighting with [Treesitter](https://github.com/nvim-treesitter/nvim-treesitter) | ||
- Autocompletion with [Cmp](https://github.com/hrsh7th/nvim-cmp) | ||
- A tree like view for symbols with [Symbols Outline](https://github.com/simrat39/symbols-outline.nvim) | ||
- A fancy, configurable, notification manager with [Notify](https://github.com/rcarriga/nvim-notify) | ||
- A doom-emacs inspired dashboard with [Dashboard](https://github.com/glepnir/dashboard-nvim) | ||
- Indent guides with [Indent Blankline](https://github.com/lukas-reineke/indent-blankline.nvim) | ||
- Git integration with [Gitsigns](https://github.com/lewis6991/gitsigns.nvim) | ||
- Statusline with [Lualine](https://github.com/nvim-lualine/lualine.nvim) | ||
- Fuzzy finding with [Telescope](https://github.com/nvim-telescope/telescope.nvim) | ||
- Personal Wiki for Vim with [VimWiki](https://github.com/vimwiki/vimwiki) | ||
- Display a popup with possible keybindings with [Which Key](https://github.com/folke/which-key.nvim) | ||
|
||
### Terminal themes | ||
|
||
Color configs for [Alacritty](https://github.com/alacritty/alacritty) is available. | ||
|
||
### Acknowledgements | ||
|
||
- [AstroVim](https://github.com/kabinspace/AstroVim), borrowed from him the initial colorscheme. | ||
- [Onedark theme](https://atom.io/themes/one-dark-ui) for the original theme colors. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
lua << EOF | ||
require("neodark").setup({theme_style = "neodark"}) | ||
EOF |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
lua << EOF | ||
require("neodark").setup({theme_style = "neodarker"}) | ||
EOF |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
local theme = require('neodark.theme') | ||
local theme_style = vim.g.colors_name | ||
local palette = theme.get_palette(theme_style) | ||
|
||
local lualine = {} | ||
|
||
lualine.normal = { | ||
a = { bg = palette.blue, fg = palette.black }, | ||
b = { bg = palette.blue_2, fg = palette.blue }, | ||
c = { bg = palette.blue_2, fg = palette.fg }, | ||
} | ||
|
||
lualine.insert = { | ||
a = { bg = palette.green, fg = palette.black }, | ||
b = { bg = palette.blue_2, fg = palette.green }, | ||
c = { bg = palette.blue_2, fg = palette.fg }, | ||
} | ||
|
||
lualine.command = { | ||
a = { bg = palette.yellow, fg = palette.black }, | ||
b = { bg = palette.blue_2, fg = palette.yellow }, | ||
c = { bg = palette.blue_2, fg = palette.fg }, | ||
} | ||
|
||
lualine.visual = { | ||
a = { bg = palette.purple, fg = palette.black }, | ||
b = { bg = palette.blue_2, fg = palette.purple }, | ||
c = { bg = palette.blue_2, fg = palette.fg }, | ||
} | ||
|
||
lualine.replace = { | ||
a = { bg = palette.red, fg = palette.black }, | ||
b = { bg = palette.blue_2, fg = palette.red }, | ||
c = { bg = palette.blue_2, fg = palette.fg }, | ||
} | ||
|
||
lualine.inactive = { | ||
a = { bg = palette.blue_2, fg = palette.blue }, | ||
b = { bg = palette.blue_2, fg = palette.fg, gui = 'bold' }, | ||
c = { bg = palette.blue_2, fg = palette.fg }, | ||
} | ||
|
||
return lualine |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
local theme = require('neodark.theme') | ||
local theme_style = vim.g.colors_name | ||
local palette = theme.get_palette(theme_style) | ||
|
||
local lualine = {} | ||
|
||
lualine.normal = { | ||
a = { bg = palette.blue, fg = palette.black }, | ||
b = { bg = palette.blue_2, fg = palette.blue }, | ||
c = { bg = palette.blue_2, fg = palette.fg }, | ||
} | ||
|
||
lualine.insert = { | ||
a = { bg = palette.green, fg = palette.black }, | ||
b = { bg = palette.blue_2, fg = palette.green }, | ||
c = { bg = palette.blue_2, fg = palette.fg }, | ||
} | ||
|
||
lualine.command = { | ||
a = { bg = palette.yellow, fg = palette.black }, | ||
b = { bg = palette.blue_2, fg = palette.yellow }, | ||
c = { bg = palette.blue_2, fg = palette.fg }, | ||
} | ||
|
||
lualine.visual = { | ||
a = { bg = palette.purple, fg = palette.black }, | ||
b = { bg = palette.blue_2, fg = palette.purple }, | ||
c = { bg = palette.blue_2, fg = palette.fg }, | ||
} | ||
|
||
lualine.replace = { | ||
a = { bg = palette.red, fg = palette.black }, | ||
b = { bg = palette.blue_2, fg = palette.red }, | ||
c = { bg = palette.blue_2, fg = palette.fg }, | ||
} | ||
|
||
lualine.inactive = { | ||
a = { bg = palette.blue_2, fg = palette.blue }, | ||
b = { bg = palette.blue_2, fg = palette.fg, gui = 'bold' }, | ||
c = { bg = palette.blue_2, fg = palette.fg }, | ||
} | ||
|
||
return lualine |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
local theme = require('neodark.theme') | ||
local util = require('neodark.util') | ||
|
||
local init = {} | ||
|
||
function init.setup(options) | ||
util.load(theme.setup(options)) | ||
end | ||
|
||
return init |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
local colors = { | ||
none = 'NONE', | ||
fg = '#abb2bf', | ||
bg = '#1e222a', | ||
black = '#181a1f', | ||
black_1 = '#1f1f25', | ||
green = '#98c379', | ||
green_1 = '#89b06d', | ||
white = '#dedede', | ||
white_1 = '#afb2bb', | ||
white_2 = '#c9c9c9', | ||
blue = '#61afef', | ||
blue_1 = '#40d9ff', | ||
blue_2 = '#1b1f27', | ||
orange = '#d19a66', | ||
orange_1 = '#ff9640', | ||
orange_2 = '#ff8800', | ||
yellow = '#e5c07b', | ||
yellow_1 = '#ebae34', | ||
yellow_2 = '#d1b071', | ||
red = '#e06c75', | ||
red_1 = '#ec5f67', | ||
red_2 = '#ffbba6', | ||
red_3 = '#cc626a', | ||
grey = '#5c6370', | ||
grey_1 = '#4b5263', | ||
grey_2 = '#777d86', | ||
grey_3 = '#282c34', | ||
grey_4 = '#2c323c', | ||
grey_5 = '#3e4452', | ||
grey_6 = '#3b4048', | ||
grey_7 = '#5c5c5c', | ||
grey_8 = '#252931', | ||
gold = '#ffcc00', | ||
cyan = '#56b6c2', | ||
purple = '#c678dd', | ||
} | ||
|
||
return colors |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
local colors = { | ||
none = 'NONE', | ||
fg = '#abb2bf', | ||
bg = '#12151b', | ||
black = '#181a1f', | ||
black_1 = '#1f1f25', | ||
green = '#98c379', | ||
green_1 = '#89b06d', | ||
white = '#dedede', | ||
white_1 = '#afb2bb', | ||
white_2 = '#c9c9c9', | ||
blue = '#61afef', | ||
blue_1 = '#40d9ff', | ||
blue_2 = '#15181f', | ||
orange = '#d19a66', | ||
orange_1 = '#ff9640', | ||
orange_2 = '#ff8800', | ||
yellow = '#e5c07b', | ||
yellow_1 = '#ebae34', | ||
yellow_2 = '#d1b071', | ||
red = '#e06c75', | ||
red_1 = '#ec5f67', | ||
red_2 = '#ffbba6', | ||
red_3 = '#cc626a', | ||
grey = '#5c6370', | ||
grey_1 = '#4b5263', | ||
grey_2 = '#777d86', | ||
grey_3 = '#282c34', | ||
grey_4 = '#2c323c', | ||
grey_5 = '#3e4452', | ||
grey_6 = '#3b4048', | ||
grey_7 = '#5c5c5c', | ||
grey_8 = '#1d2027', | ||
gold = '#ffcc00', | ||
cyan = '#56b6c2', | ||
purple = '#c678dd', | ||
} | ||
|
||
return colors |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
local theme = {} | ||
|
||
function theme.get_palette(palette_style) | ||
local palette = require('neodark.palette.' .. palette_style) | ||
return palette | ||
end | ||
|
||
function theme.setup(options) | ||
local palette = theme.get_palette(options.theme_style) | ||
local theme_name = options.theme_style | ||
|
||
local base = require('neodark.theme.base') | ||
local cmp = require('neodark.theme.cmp') | ||
local treesitter = require('neodark.theme.treesitter') | ||
local lsp = require('neodark.theme.lsp') | ||
local telescope = require('neodark.theme.telescope') | ||
local vimwiki = require('neodark.theme.vimwiki') | ||
local indent_blankline = require('neodark.theme.indent_blankline') | ||
local gitsigns = require('neodark.theme.gitsigns') | ||
local dashboard = require('neodark.theme.dashboard') | ||
local whichkey = require('neodark.theme.whichkey') | ||
local symbols_outline = require('neodark.theme.symbols_outline') | ||
local notify = require('neodark.theme.notify') | ||
local nvimtree = require('neodark.theme.nvimtree') | ||
|
||
local theme_ = { | ||
base.setup(palette), | ||
cmp.setup(palette), | ||
treesitter.setup(palette), | ||
lsp.setup(palette), | ||
telescope.setup(palette), | ||
vimwiki.setup(palette), | ||
indent_blankline.setup(palette), | ||
gitsigns.setup(palette), | ||
dashboard.setup(palette), | ||
whichkey.setup(palette), | ||
symbols_outline.setup(palette), | ||
notify.setup(palette), | ||
nvimtree.setup(palette), | ||
} | ||
|
||
return theme_name, theme_ | ||
end | ||
|
||
return theme |
Oops, something went wrong.