Skip to content

Commit

Permalink
Fix commands.enable when options.enabled = false
Browse files Browse the repository at this point in the history
It doesn't invoke server:run(), so to enable it also requires to run
`:NeoCodeium restart`.
  • Loading branch information
monkoose committed Apr 6, 2024
1 parent 708d032 commit 03a2d82
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lua/neocodeium/commands.lua
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,9 @@ end

function M.enable()
options.enabled = true
if not server.pid then
server:run()
end
end

function M.disable_buffer()
Expand Down

0 comments on commit 03a2d82

Please sign in to comment.