Skip to content

Commit

Permalink
Fix setup when no config object is passed (#257)
Browse files Browse the repository at this point in the history
  • Loading branch information
dimfeld authored Oct 28, 2024
1 parent a7196bf commit dddaee0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/codeium/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@ function M.setup(options)
})

local source = Source:new(s)
if options.enable_cmp_source then
if require("codeium.config").options.enable_cmp_source then
require("cmp").register_source("codeium", source)
end

require("codeium.virtual_text").setup(s, require("codeium.config").options.virtual_text)
require("codeium.virtual_text").setup(s)
end

return M

0 comments on commit dddaee0

Please sign in to comment.