Skip to content
This repository has been archived by the owner on Jul 21, 2024. It is now read-only.

Commit

Permalink
remap tip
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoshihou514 committed Nov 23, 2023
1 parent ca26efb commit 1dda05d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,14 @@ vim.keymap.set('i', '<C-e>', function()
end
return '<C-e>'
end, {expr = true})

-- For using enter as completion, may conflict with somw autopair plugin
vim.keymap.set("i", "<cr>", function()
if vim.fn.pumvisible() == 1 then
return "<C-y>"
end
return "<cr>"
end, { expr = true, noremap = true })
```

## License MIT

0 comments on commit 1dda05d

Please sign in to comment.