Skip to content

Commit

Permalink
Refactor setup_keyfilters
Browse files Browse the repository at this point in the history
  • Loading branch information
luozhiya committed May 13, 2024
1 parent d9a7d9d commit da692ff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lua/fittencode/bindings.lua
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ function M.setup_keymaps()
Base.map('i', '<C-Right>', API.accept_word)
end

function M.setup_onkey()
function M.setup_keyfilters()
-- '<80>kd', '<80>kD' in Lua
local keycodes = {
'<Backspace>',
Expand Down
2 changes: 1 addition & 1 deletion lua/fittencode/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function M.setup(opts)
Bindings.setup_keymaps()
end
if Config.options.inline_completion.disable_completion_when_delete then
Bindings.setup_onkey()
Bindings.setup_keyfilters()
end
elseif Config.options.completion_mode == 'source' then
require('fittencode.sources').setup()
Expand Down

0 comments on commit da692ff

Please sign in to comment.