-
Notifications
You must be signed in to change notification settings - Fork 67
Can't get the plugin to work #120
Comments
Also paste the text |
It doesn't look like you require your plugins file? Does |
Here's some nested tex code that should use the rainbow: |
load plugins by this order:
this plugins will not work when
|
emm, It's weird that it doesn't work in my first Buffer, but the second one works fine. But like I said above, tweaking Bufferline and colorschema has a chance to make this plugin work |
@cathaysia Appreciate the suggestion, but no dice. I wonder if it's because I'm not using Neovim nightly. |
Can reproduce for both vim.cmd [[packadd packer.nvim]]
return require('packer').startup(function(use)
-- Packer can manage itself
use 'wbthomason/packer.nvim'
use 'nvim-treesitter/nvim-treesitter'
require("nvim-treesitter.configs").setup {
ensure_installed = { "c", "lua", "rust", "java", "clojure" },
-- Automatically install missing parsers when entering buffer
auto_install = true,
highlight = {
enable = true,
additional_vim_regex_highlighting = false,
},
rainbow = {
enable = true,
extended_mode = true, -- Also highlight non-bracket delimiters like html tags, boolean or table: lang -> boolean
max_file_lines = nil, -- Do not enable for files with more than n lines, int
colors = {"#666666", "#5544EE", "#2265DC", "#00A89B", "#229900", "#999900", "#F57900", "#EE66E8"}, -- table of hex strings
-- termcolors = {} -- table of colour name strings
}
}
-- Colorscheme
use 'kostafey/organicgreen.nvim'
vim.cmd[[colorscheme organicgreen]]
end)
|
If you defined `{colors = { "#cc241d", "#a89984" }, termcolors = {}}`, you can't reproduce the issue. Because there are seven colors and termcolors in default config. If you defined colors more than seven, colors = { "#cc241d", "#a89984", "#b16286", "#d79921", "#689d6a", "#d65d0e", "#458588", "#005f87" }, termcolors = {}, Or colors' length more than termcolors', colors = { "#cc241d", "#a89984"}, termcolors = { 3 }, then the issue can be reproduced. close p00f#120
If you defined nvim-ts-rainbow/lua/rainbow.lua Lines 29 to 46 in c641e22
If you defined colors more than seven,
Or colors' length more than termcolors',
then the issue can be reproduced. nvim-ts-rainbow/lua/rainbow/internal.lua Lines 160 to 166 in c641e22
When |
adoyle-h looks like I'm doing something completely wrong. But I can't enable plugin for seven colors too. The same story if I remove nvim --version
NVIM v0.8.0-dev+1027-g4bf005e9f
The total config for test case:
vim.cmd [[packadd packer.nvim]]
return require('packer').startup(function(use)
-- Packer can manage itself
use 'wbthomason/packer.nvim'
use 'nvim-treesitter/nvim-treesitter'
-- use 'p00f/nvim-ts-rainbow'
require("nvim-treesitter.configs").setup {
ensure_installed = { "c", "lua", "rust", "java", "clojure" },
-- Automatically install missing parsers when entering buffer
auto_install = true,
highlight = {
enable = true,
-- additional_vim_regex_highlighting = false,
},
rainbow = {
enable = true,
colors = {
"#cc241d",
"#a89984",
"#b16286",
"#d79921",
"#689d6a",
"#d65d0e",
"#458588",
},
termcolors = {
"Red",
"Green",
"Yellow",
"Blue",
"Magenta",
"Cyan",
"White",
},
}
}
end) |
|
@p00f oh, really. It works now. Thank you! |
If you defined `{colors = { "#cc241d", "#a89984" }, termcolors = {}}`, you can't reproduce the issue. Because there are seven colors and termcolors in default config. If you defined colors more than seven, colors = { "#cc241d", "#a89984", "#b16286", "#d79921", "#689d6a", "#d65d0e", "#458588", "#005f87" }, termcolors = {}, Or colors' length more than termcolors', colors = { "#cc241d", "#a89984"}, termcolors = { 3 }, then the issue can be reproduced. close p00f#120
Describe the bug
Using the Neovim 0.7.2 and the latest treesitter, I cannot get it to color anything.
Steps to reproduce
Install plugin and configure, then nothing. See dotfiles
Expected behavior
Coloring nested enclosing characters like
{{}}
Screenshots
The text was updated successfully, but these errors were encountered: