-
-
Notifications
You must be signed in to change notification settings - Fork 175
Open
Labels
Description
Neovim version (nvim -v)
v0.11.1
Terminal / multiplexer
Wezterm
Describe the bug
See the screenshots below:
Rose-pine:
Oxocarbon:
Notice how the variable interpolation in the format string gets syntax highlighting in oxocarbon, but not rose pine
Inspect output when hovering over hello on line 3:
Note that I do have tresitter, but disabling it does not seem to help
Rose pine with TS disabled:
Oxocarbon with TS disabled:
Repro
Ensure that rust-analyzer is installed somehow (I used rustup with rustup component add rust-analyzer)
vim.o.packpath = "/tmp/nvim/site"
local plugins = {
rose_pine = "https://github.com/rose-pine/neovim",
-- ADD OTHER PLUGINS _NECESSARY_ TO REPRODUCE THE ISSUE
}
for name, url in pairs(plugins) do
local install_path = "/tmp/nvim/site/pack/test/start/" .. name
if vim.fn.isdirectory(install_path) == 0 then
vim.fn.system({ "git", "clone", "--depth=1", url, install_path })
end
end
require("rose-pine").setup({
-- ADD ROSÉ PINE CONFIG THAT IS _NECESSARY_ TO REPRODUCE THE ISSUE
})
vim.lsp.config("rust-analyzer", {
cmd = { "rust-analyzer" },
root_markers = { "Cargo.toml", ".git" },
settings = {
["rust-analyzer"] = {
cargo = { allFeatures = true },
check = { command = "clippy" },
},
},
})
vim.api.nvim_create_autocmd("FileType", {
pattern = "rust",
callback = function(args)
vim.lsp.start({
name = "rust-analyzer",
cmd = { "rust-analyzer" },
root_dir = vim.fs.root(args.buf, { "Cargo.toml", ".git" }),
settings = { ["rust-analyzer"] = { cargo = { allFeatures = true } } },
})
end,
})
vim.lsp.enable("rust-analyzer")
vim.cmd("colorscheme rose-pine")Reactions are currently unavailable