Skip to content

Commit

Permalink
fix: remove redundant is enabled check
Browse files Browse the repository at this point in the history
  • Loading branch information
Saghen committed Dec 25, 2024
1 parent 35a371a commit f4add54
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lua/blink/cmp/keymap/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,7 @@ function keymap.setup()
-- 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 require('blink.cmp.config').enabled() then
if require('blink.cmp.config').enabled() then
require('blink.cmp.keymap.apply').keymap_to_current_buffer(mappings)
end
require('blink.cmp.keymap.apply').keymap_to_current_buffer(mappings)
end

-- Apply cmdline keymaps since they're global, if any sources are defined
Expand Down

0 comments on commit f4add54

Please sign in to comment.