Skip to content
This repository has been archived by the owner on Jul 11, 2022. It is now read-only.

Commit

Permalink
🔧 Docs and linting Improved
Browse files Browse the repository at this point in the history
  • Loading branch information
ful1e5 committed Jun 20, 2021
1 parent 3fea0df commit 1e363e7
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 17 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ format:
@for file in `find . -name '*.lua'`;do lua-format $$file -i; done;

lint: $(onedark_path)
@luacheck $(onedark_path)
@luacheck $(onedark_path) --config .luacheckrc

check: format lint
34 changes: 18 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ require('onedark').setup()

To enable the `onedark` theme for `Lualine`, simply specify it in your lualine settings:

> **📝 NOTE:** Set `lualine` configuration **before** `onedark`.
```lua
require('lualine').setup {
options = {
Expand All @@ -99,18 +101,18 @@ vim.g.lightline = {colorscheme = "onedark"}

## ⚙️ Configuration

| Option | Default | Description |
| ---------------------- | ------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| commentStyle | `NONE` | Make comments italic **(Options:** `NONE` or `italic`) |
| keywordStyle | `NONE` | Make keywords italic **(Options:** `NONE` or `italic`) |
| functionStyle | `NONE` | Make functions italic **(Options:** `NONE` or `italic`) |
| variableStyle | `NONE` | Make variables and identifiers italic **(Options:** `NONE` or `italic`) |
| transparent | `false` | Enable this to disable setting the background color |
| hideInactiveStatusline | `false` | Enabling this option, will hide inactive statuslines and replace them with a thin border instead. Should work with the standard **StatusLine** and **LuaLine**. |
| sidebars | `{}` | Set a darker background on sidebar-like windows. For example: `{"qf", "vista_kind", "terminal", "packer"}` |
| darkSidebar | `true` | Sidebar like windows like `NvimTree` get a darker background |
| darkFloat | `true` | Float windows like the lsp diagnostics windows get a darker background. |
| colors | `{}` | You can override specific color groups to use other groups or a hex color |
| Option | Default | Description |
| ---------------------- | -------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| commentStyle | `italic` | Highlight style for comments (check `:help highlight-args` for options) |
| keywordStyle | `italic` | Highlight style for keywords (check `:help highlight-args` for options) |
| functionStyle | `NONE` | Highlight style for functions (check `:help highlight-args` for options) |
| variableStyle | `NONE` | Highlight style for variables and identifiers (check `:help highlight-args` for options) |
| transparent | `false` | Enable this to disable setting the background color |
| hideInactiveStatusline | `false` | Enabling this option, will hide inactive statuslines and replace them with a thin border instead. Should work with the standard **StatusLine** and **LuaLine**. |
| sidebars | `{}` | Set a darker background on sidebar-like windows. For example: `{"qf", "vista_kind", "terminal", "packer"}` |
| darkSidebar | `true` | Sidebar like windows like `NvimTree` get a darker background |
| darkFloat | `true` | Float windows like the lsp diagnostics windows get a darker background. |
| colors | `{}` | You can override specific color groups to use other groups or a hex color |

```lua
-- Example config in Lua
Expand Down Expand Up @@ -191,10 +193,10 @@ require("onedark").setup({

```lua
require("onedark").setup({
commentStyle = "Italic",
keywordStyle = "Italic",
functionStyle = "Italic",
variableStyle = "Italic"
commentStyle = "italic",
keywordStyle = "italic",
functionStyle = "italic",
variableStyle = "italic"
-- ... your onedark config
})
```
Expand Down

0 comments on commit 1e363e7

Please sign in to comment.