Skip to content

Commit

Permalink
feat!: by default dont force any keymaps on the user
Browse files Browse the repository at this point in the history
BREAKING CHANGE
  • Loading branch information
declancm committed Jun 28, 2024
1 parent 3d8a1e8 commit c90c3f4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
12 changes: 9 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,15 @@ use {

A settings table can be passed into the setup function for custom options.

### Default Settings
### Default Options

```lua
return {
-- Disable the plugin
disabled = false,
keymaps = {
-- Enable the provided 'basic' keymaps
basic = true,
basic = false,
-- Enable the provided 'extra' keymaps
extra = false,
},
Expand Down Expand Up @@ -92,7 +92,13 @@ return {

```lua
require("cinnamon").setup {
keymaps = { extra = true }, -- Enable the 'extra' keymaps
-- Enable all provided keymaps
keymaps = {
basic = true,
extra = true,
},
-- Only scroll the window
options = { mode = "window" },
}
```

Expand Down
2 changes: 1 addition & 1 deletion lua/cinnamon/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ local M = {}
local defaults = {
disabled = false,
keymaps = {
basic = true,
basic = false,
extra = false,
},
options = {
Expand Down

0 comments on commit c90c3f4

Please sign in to comment.