Closed petobens closed 1 year ago
With this minimal config I can see a red prompt:
local root = "/tmp/onedarkpro"
-- Set stdpaths to use root dir
for _, name in ipairs({ "config", "data", "state", "cache" }) do
vim.env[("XDG_%s_HOME"):format(name:upper())] = root .. "/" .. name
end
-- Bootstrap lazy
local lazypath = root .. "/plugins/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
vim.fn.system({
"git",
"clone",
"--filter=blob:none",
"--single-branch",
"https://github.com/folke/lazy.nvim.git",
lazypath,
})
end
vim.opt.runtimepath:prepend(lazypath)
-- Install plugins
local plugins = {
{
"nvim-telescope/telescope.nvim",
dependencies = { "nvim-lua/plenary.nvim" },
},
{
"olimorris/onedarkpro.nvim",
},
}
require("lazy").setup(plugins, {
root = root .. "/plugins",
})
-- Plugin setup
require("telescope").setup()
require("onedarkpro").setup({
highlights = {
TelescopePromptNormal = { fg = "${red}" },
},
})
vim.cmd("colorscheme onedark")
The order of the require("telescope").setup()
call shouldn't matter either. Can you test this out?
If I try your config with:
highlights = {
TelescopePromptPrefix = { fg = '${red}' },
},
so that only the Prompt symbol should be highlighted in red then it doesn't seem to work (i.e I want only to change the prompt symbol highlight not the text). Can you reproduce this?
What do you see if you run hi TelescopePromptPrefix
?
Do you actually get a red hl when using TelescopePromptPrefix
?
Do you actually get a red hl when using
TelescopePromptPrefix
?
This looks correct?! I think TelescopePromptNormal
might be what you're looking for. This is likely in part down to how I was applying telescope highlights in the theme. A little confusing.
I am having a similar issue with nvim lightly. However, I believe this might be a bug in neovim nightly itself as I can reproduce this behavior with multiple color schemes. @petobens, are you using the nightly build of neovim?
Hi @xulongwu4 ! I'm indeed using the nightly build.
I'm having this too. But in a really weird way.
On opening Telescope, the prompt is the color of fg
. Then if I delete a session via Telescope, you can see the prompt changes color to red
(which is correct):
https://github.com/nvim-telescope/telescope.nvim/issues/2384
Thanks for finding this. Will leave this issue open for now in case others come across it
Conni's sorted this now https://github.com/nvim-telescope/telescope.nvim/pull/2403 👏🏼
Your OneDarkPro config
Dunno if this is a problem with onedark or telescope; I tried using:
But cannot quite seem to change the
TelescopePromptPrefix
highlight.Error messages
No response
Describe the bug
AFAICT the
TelescopePromptPrefix
as per https://github.com/olimorris/onedarkpro.nvim/blob/main/lua/onedarkpro/highlights/plugins/telescope.lua#L30 should be purple but I'm seing a plain gray one.I tried running:
but that didn't change the color either.
Reproduce the bug
No response
Final checks
minimal.lua
config file above and still get the issue:checkhealth treesitter