[Help] Tree‑sitter not highlighting operators inside normal strings in Python/C?
Hi all,
I’m trying to get Tree‑sitter in Neovim to highlight operators inside normal formatted strings like this:
var = 5
print("count: %.2f" % var)
But operators like % aren’t getting any special color.
My Treesitter setup:
require("nvim-treesitter.configs").setup({
ensure_installed = { "python", "c" },
highlight = {
enable = true,
additional_vim_regex_highlighting = false,
},
})
Posted Jun 23, 2025, 4:21 AM UTC
24