Skip to content

Commit

Permalink
docs: explain lazy load fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lopi-py committed Nov 2, 2024
1 parent 9d50661 commit 3a096f3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lua/blink/cmp/keymap.lua
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,8 @@ function keymap.setup(opts)
end,
})

-- This is not called when the plugin loads since it first checks if the binary is
-- installed. As a result, when lazy-loaded on InsertEnter, the event may be missed
if vim.api.nvim_get_mode().mode == 'i' and not utils.is_blocked_buffer() then
keymap.apply_keymap_to_current_buffer(mappings)
end
Expand Down

0 comments on commit 3a096f3

Please sign in to comment.