Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add mappings api #28

Merged
merged 3 commits into from
Jun 26, 2024
Merged

feat: add mappings api #28

merged 3 commits into from
Jun 26, 2024

Conversation

max397574
Copy link
Owner

@max397574 max397574 commented Jun 25, 2024

closes #14

examples

vim.keymap.set("i", "<cr>", "<Plug>(NeocompleteConfirm)")
vim.keymap.set("i", "<tab>", function()
    local mappings = require("neocomplete").mappings
    if mappings.is_open() then
        mappings.select_next(1)
    elseif luasnip.is_available() then
        luasnip.jump(1)
    end
end)

todo:

  • see if fallback can be created only when mapping is executed to allow creating them on startup (potentially before user mapped them)

@max397574 max397574 added this to the v1.0.0 milestone Jun 25, 2024
@max397574 max397574 self-assigned this Jun 26, 2024
@max397574 max397574 merged commit 27a1313 into main Jun 26, 2024
6 of 7 checks passed
@max397574 max397574 deleted the push-wxnqpzolllkk branch July 11, 2024 07:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Expose mappings api
1 participant