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

i cant get the statusline thing working in neovim, using lualine... #323

Open
daUnknownCoder opened this issue Feb 29, 2024 · 2 comments
Open

Comments

@daUnknownCoder
Copy link

tried both of these in lualine:

          {
            function()
              vim.api.nvim_call_function("codeium#GetStatusString", {})
              vim.cmd([[set statusline+=\{…\}%3{codeium#GetStatusString()}]])
            end,
          },

i always get a text: "nil" while i am actively using this plugin

@sergiornelas
Copy link

sergiornelas commented Mar 17, 2024

Add it in the desired section:

function()
	return vim.fn["codeium#GetStatusString"]()
end

If you want to disable the ON text, this is what I did:

{
	'vim.fn["codeium#GetStatusString"]()',
	fmt = function(str)
		if str == " ON" then
			return ""
		elseif str == " * " then
			return " 󰔟 "
		else
			return str
		end
	end,
},

@daUnknownCoder
Copy link
Author

@sergiornelas, your thing works, but i really wanted the codeium logo to come so i was trying this:

          {
            'vim.fn["codeium#GetStatusString"]()',
            fmt = function(str)
              if str == " ON" then
                return ""
              elseif str == " OFF" then
                return ""
              elseif str == " * " then
                return ""
              else
                return str
              end
            end,
          },

any thoughts?

i want the logo

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