-
Hello. " rainbow-delimiters
lua << END
local rainbow = require 'rainbow-delimiters'
require('rainbow-delimiters.setup').setup{
blacklist = {
function(bufnr)
local max_filesize = 1 * 1024 *1024 -- 1 MB
local ok, stats = pcall(vim.loop.fs_stat, vim.api.nvim_buf_get_name(bufnr))
if ok and stats and stats.size > max_filesize then
return vim.bo.filetype
end
return nil
end
}
}
END
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
This isn't supported. According to the manual "List of Tree-sitter languages for which to disabled rainbow delimiters.", so the value of What you could do is dynamically set the local rainbow = require 'rainbow-delimiters'
vim.g.rainbow_delimiters = {
strategy = {
[''] = function(bufnr)
-- Your code here
return rainbow.strategy['noop']
end
}
} If this does not solve your problem please open a new issue. It would be possible to specify |
Beta Was this translation helpful? Give feedback.
-
@Serega124 FYI, the new setting has been released proper now, you can find it in the |
Beta Was this translation helpful? Give feedback.
@Serega124 FYI, the new setting has been released proper now, you can find it in the
master
branch as well as the newv0.6.0
release. I have renamed it tocondition
, but everything else is the same.