Skip to content

Commit

Permalink
Update docs on how to disable default keymaps
Browse files Browse the repository at this point in the history
I was having trouble disabling using LazyVim because I was updating the variable in the `config` function. Decided to make it clear that this needs to happen before the plugin gets loaded
  • Loading branch information
Alex23rodriguez authored Nov 26, 2024
1 parent 1883519 commit 6697a47
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,21 @@ useful if your system is read-only or uses immutable datastructures.

Default: `1`

Whether to enable built-in mappings. If you decide to disable this, then you can
Whether to enable built-in mappings.

To disable:
```vim
let g:doge_enable_mappings = 0
```

Or with lua
```lua
-- be sure to call this before the plugin gets loaded.
-- For example, in LazyVim, call in `init`
vim.api.nvim_set_var('doge_enable_mappings', 0)
```

If you decide to disable this, then you can
copy the mappings below and change them to your needs:

```vim
Expand Down

0 comments on commit 6697a47

Please sign in to comment.