this post was submitted on 06 Mar 2024
21 points (100.0% liked)

Neovim

2169 readers
3 users here now

founded 1 year ago
MODERATORS
 

Hi I've been looking at nyoom.nvim and it alters the UI of telescope (see screenshot) I was just wondering how this is possible? I looked d through the codebase but couldn't find anything other than the setting of colours?

Here is the repo: https://github.com/nyoom-engineering/nyoom.nvim

top 4 comments
sorted by: hot top controversial new old
[–] autokludge 2 points 8 months ago* (last edited 8 months ago) (1 children)

Ii didn't look much into it, is this file relevant? https://github.com/nyoom-engineering/nyoom.nvim/blob/main/fnl/modules/completion/telescope/config.fnl

not sure on specifics of fennel, looks to be overriding some telescope layout_config options

[–] [email protected] 1 points 8 months ago (1 children)

Ah it appears I linked the wrong repo, I'm not using the nyoom.nvim distro but the oxocarbon.nvim colour scheme I cant find anything to do with Telescope in this repo except a few colour changes?

[–] autokludge 4 points 8 months ago (1 children)

The color scheme itself doesn't modify the UI apart from colors, the screenshot you linked from the oxocarbon repo is in context of the nyoom.nvim distro (see bottom left).

I did a quick try of oxocarbon overriding the theme from a base kickstart.nvim and it looks like below:

Its looks completely different from base but it is just careful color selection for foreground + background colors for titles, and setting the borders to off-black to give a borderless but padded look. eg vim.api.nvim_set_hl(0, "TelescopeResultsTitle", {fg = oxocarbon.blend, bg = oxocarbon.blend}) https://github.com/nyoom-engineering/oxocarbon.nvim/blob/main/lua/oxocarbon/init.lua#L282-L292

[–] [email protected] 3 points 8 months ago

Amazing, thank you for the detailed response!