Skip to content

Commit

Permalink
chore: apply formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
aarondill committed Jan 12, 2024
1 parent 57e43e2 commit cc377eb
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions lua/tabnine/keymaps.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,12 @@ local config = require("tabnine.config")
local state = require("tabnine.state")

function M.accept_suggestion()
if not state.completions_cache or not state.rendered_completion then
return false
end
if not state.completions_cache or not state.rendered_completion then return false end
vim.schedule(completion.accept)
return true
end
function M.dismiss_suggestion()
if not state.completions_cache or not state.rendered_completion then
return false
end
if not state.completions_cache or not state.rendered_completion then return false end
vim.schedule(function()
completion.clear()
state.completions_cache = nil
Expand Down

0 comments on commit cc377eb

Please sign in to comment.