Skip to content

Conversation

@Jint-lzxy
Copy link
Collaborator

I'm not sure why nvim_get_hl returns a decimal RGB value instead of a hex string.

@ayamir @CharlesChiuGit Have u encountered similar issues?

:=vim.api.nvim_get_hl(0, { name = "Normal" })

Returns

{
  bg = 1973806,
  fg = 13489908
}
Press ENTER or type command to continue

But according to the documentation, it should return:

{
  bg = #1E1E2E,
  fg = #CDD6F4
}
Press ENTER or type command to continue

@ayamir
Copy link
Owner

ayamir commented May 15, 2023

It returns the former:
image

@ayamir ayamir merged commit 770810b into main May 16, 2023
@ayamir ayamir deleted the feat/neovim-v2 branch May 16, 2023 03:44
singlemancombat pushed a commit to singlemancombat/nvim-config that referenced this pull request May 16, 2023
leavers pushed a commit to leavers/nvimdots that referenced this pull request May 16, 2023
bleedingfight pushed a commit to bleedingfight/nvimdots that referenced this pull request Jun 22, 2023
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

Successfully merging this pull request may close these issues.

3 participants