Skip to content

Commit

Permalink
chore(build): auto-generate docs
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Oct 7, 2024
1 parent 5868cee commit e7f5bac
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions docs/configuration_recipes.md
Original file line number Diff line number Diff line change
Expand Up @@ -145,3 +145,21 @@ vim.keymap.set("i", "<c-p>", function()
end
end)
```

## Use with nvim-autopairs

```lua
"windwp/nvim-autopairs",
lazy = false,
config = function()
local npairs = require("nvim-autopairs")
npairs.setup({ map_cr = false })
vim.keymap.set("i", "<cr>", function()
if require("care").api.is_open() then
require("care").api.confirm()
else
vim.fn.feedkeys(require("nvim-autopairs").autopairs_cr(), "in")
end
end)
end,
```

0 comments on commit e7f5bac

Please sign in to comment.