codeium.vim icon indicating copy to clipboard operation
codeium.vim copied to clipboard

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

Open daUnknownCoder opened this issue 1 year ago • 2 comments

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

daUnknownCoder avatar Feb 29 '24 15:02 daUnknownCoder

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,
},

sergiornelas avatar Mar 17 '24 21:03 sergiornelas

@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

daUnknownCoder avatar Mar 28 '24 13:03 daUnknownCoder