forked from embark-theme/vim
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
4 changed files
with
120 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,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2020 embark-theme | ||
|
||
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. |
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,99 @@ | ||
<div align=center> | ||
<h1>embark-lua.nvim</h1> | ||
</div> | ||
|
||
<p align="center"><strong>An ambitious Vim theme.</strong></p> | ||
|
||
<p align="center"><em>"Man cannot discover new oceans unless he has the courage to lose sight of the shore. - Andre Gide"</em></p> | ||
|
||
<div align=center> | ||
<img src="./assets/screenshot.png" alt="screenshot" /> | ||
</div> | ||
|
||
## About | ||
|
||
This is a rewrite of original theme [embark](https://github.com/embark-theme/vim) in lua, All credits for color palette and idea should goes to the author. | ||
Rewriting in lua brings better support for treesitter, lualine and other commonly used nvim plugins. | ||
|
||
## Getting Started | ||
|
||
First install using your plugin manager. Rename package to embark using your plugin manager's built in facilities to do so. | ||
|
||
### lazy.nvim | ||
|
||
```lua | ||
return { | ||
"genzyy/embark-lua.nvim", | ||
name = "embark", | ||
} | ||
``` | ||
|
||
### packer.nvim | ||
```lua | ||
use { 'genzyy/embark-lua.nvim', as = 'embark' } | ||
``` | ||
|
||
### vim-plug | ||
```vim | ||
Plug 'genzyy/embark-lua.nvim', { 'as': 'embark', 'branch': 'main' } | ||
``` | ||
|
||
Then set embark as colorscheme. | ||
|
||
Vimscript | ||
|
||
```vim | ||
colorscheme embark | ||
``` | ||
|
||
Lua for neovim | ||
|
||
```lua | ||
vim.cmd('colorscheme embark') | ||
``` | ||
|
||
For packer users the colorscheme can be placed in the config callback. | ||
|
||
```lua | ||
use { | ||
'genzyy/embark-lua.nvim', | ||
as = 'embark', | ||
config = function() | ||
vim.cmd('colorscheme embark') | ||
end | ||
} | ||
``` | ||
|
||
### Lightline support | ||
|
||
A lightline theme is also available. Just set your colorscheme to embark. | ||
|
||
```vim | ||
let g:lightline = { | ||
\ 'colorscheme': 'embark', | ||
\ } | ||
``` | ||
|
||
### Airline support | ||
|
||
Airline should just pick up on theme automatically, but if there is an issue with this it can be set manually. | ||
`let g:airline_theme = 'embark'` | ||
|
||
### Lualine support | ||
|
||
Lualine should pick up the theme with the `auto` setting, or you can set it manually. | ||
|
||
```lua | ||
require('lualine').setup { | ||
options = { | ||
theme = 'embark', | ||
} | ||
} | ||
``` | ||
|
||
|
||
### Todo | ||
|
||
- [ ] user configuration. | ||
- [ ] support for other nvim plugins. | ||
- [ ] light variant. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.