Skip to content

Commit

Permalink
Add note on palette and change parentheses to "Always" (#142)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexvZyl authored Jun 2, 2024
1 parent 11d8494 commit 1333956
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .stylua.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ line_endings = "Unix"
indent_type = "Spaces"
indent_width = 4
quote_style = "AutoPreferSingle"
call_parentheses = "None"
call_parentheses = "Always"
collapse_simple_statement = "ConditionalOnly"
18 changes: 13 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ With [lazy.nvim](https://github.com/folke/lazy.nvim):
lazy = false,
priority = 1000,
config = function()
require 'nordic' .load()
require('nordic').load()
end
}
```
Expand All @@ -57,20 +57,28 @@ colorscheme nordic
Using lua:

```lua
vim.cmd.colorscheme 'nordic'
vim.cmd.colorscheme('nordic')
-- or
require 'nordic' .load()
require('nordic').load()
```

Using with lualine:

```lua
require 'lualine' .setup {
require('lualine').setup({
options = {
theme = 'nordic'
}
}
})
```

If you want to use the color palette somewhere else, you can access it with:

```lua
local palette = require('nordic.colors')
```
> [!WARNING]
> Please make sure that `require('nordic.colors')` is called *after* setup, otherwise the colors might be wrong for your config.
# ⚙️ Configuration

Expand Down

0 comments on commit 1333956

Please sign in to comment.