Skip to content

Commit

Permalink
Merge pull request #1 from przepompownia/background
Browse files Browse the repository at this point in the history
Fix: added `background` support
  • Loading branch information
tummetott authored Feb 10, 2023
2 parents 3ed9403 + ad1be03 commit 3a3993e
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 2 deletions.
19 changes: 17 additions & 2 deletions .github/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ come in complementary pairs which mostly fall into four categories:
- ❌ You can disable keymaps you don't need
- 🔁 All mappings are dot repeatable without additional plugin
- 📝 Mappings have proper keymap descriptions (used by e.g. [which-key](https://github.com/folke/which-key.nvim))
- 🔢 Many mappings can be prefixed with [count]
- 🔢 Many mappings can be prefixed with [count]
- 👯 Default behaviour mimics the original [vim-unimpaired](https://github.com/tpope/vim-unimpaired) plugin
- 💨 Written in LUA instead of vim script
- 💨 Written in LUA instead of vim script


### ⚡️ Requirements
Expand Down Expand Up @@ -384,6 +384,21 @@ To see all keys of the `keymaps` table, have a look at the default setup options
description = 'Toggle spell check',
dot_repeat = true,
},
enable_background = {
mapping = '[ob',
description = 'Set background to light',
dot_repeat = false,
},
disable_background = {
mapping = ']ob',
description = 'Set background to dark',
dot_repeat = false,
},
toggle_background = {
mapping = 'yob',
description = 'Toggle background',
dot_repeat = true,
},
enable_colorcolumn = {
mapping = '[ot',
description = 'Enable colorcolumn',
Expand Down
15 changes: 15 additions & 0 deletions lua/unimpaired/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,21 @@ local defaults = {
description = 'Toggle spell check',
dot_repeat = true,
},
enable_background = {
mapping = '[ob',
description = 'Set background to light',
dot_repeat = false,
},
disable_background = {
mapping = ']ob',
description = 'Set background to dark',
dot_repeat = false,
},
toggle_background = {
mapping = 'yob',
description = 'Toggle background',
dot_repeat = true,
},
enable_colorcolumn = {
mapping = '[ot',
description = 'Enable colorcolumn',
Expand Down

0 comments on commit 3a3993e

Please sign in to comment.