Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add "Enable" & "Disable" command. #209

Open
SuXYIO opened this issue Jul 24, 2024 · 2 comments
Open

Add "Enable" & "Disable" command. #209

SuXYIO opened this issue Jul 24, 2024 · 2 comments

Comments

@SuXYIO
Copy link

SuXYIO commented Jul 24, 2024

Great plugin!
I think it would be better if there's Enable and Disable commands like in codeium.vim plugin, so it will be easy to turn on and off.

@dundalek
Copy link

dundalek commented Nov 7, 2024

For toggling the virtual text completions I came up with following workarounds:

{
  desc = "Codeium: Disable",
  function() require("codeium.config").options.virtual_text.manual = true end,
},
{
  desc = "Codeium: Enable",
  function() require("codeium.config").options.virtual_text.manual = false end,
},
{
  desc = "Codeium: Toggle",
  function()
    local virtual_text = require("codeium.config").options.virtual_text
    virtual_text.manual = not virtual_text.manual
  end,
},

@SuXYIO
Copy link
Author

SuXYIO commented Dec 29, 2024

@dundalek good, but im using cmp + codeium completion 😅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants