Skip to content

Commit

Permalink
bugfix for #267
Browse files Browse the repository at this point in the history
  • Loading branch information
jayli committed Dec 6, 2023
1 parent 23f3ef5 commit 9f3bd6f
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions lua/easycomplete/tabnine.lua
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,12 @@ end

function Export.init()
Export.nvim_init_tabnine_hl()
vim.cmd [[
autocmd ColorScheme * call v:lua.require("easycomplete.tabnine").nvim_init_tabnine_hl()
]]
vim.api.nvim_create_autocmd({"ColorScheme"}, {
pattern = {"*"},
callback = function()
Export.nvim_init_tabnine_hl()
end
})
end

-- code_block 是一个字符串,有可能包含回车符
Expand Down

0 comments on commit 9f3bd6f

Please sign in to comment.