Skip to content

Commit 10f3847

Browse files
committed
fix(rainbow-delimiters-nvim): use new large buffer detection
1 parent 66ec9da commit 10f3847

File tree

1 file changed

+6
-1
lines changed
  • lua/astrocommunity/editing-support/rainbow-delimiters-nvim

1 file changed

+6
-1
lines changed

lua/astrocommunity/editing-support/rainbow-delimiters-nvim/init.lua

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@ return {
3636
},
3737
event = "User AstroFile",
3838
main = "rainbow-delimiters.setup",
39-
opts = {},
39+
opts = {
40+
condition = function(bufnr)
41+
local buf_utils = require "astrocore.buffer"
42+
return buf_utils.is_valid(bufnr) and not buf_utils.is_large(bufnr)
43+
end,
44+
},
4045
},
4146
}

0 commit comments

Comments
 (0)