Skip to content

Commit ea9fb5f

Browse files
chore(build): auto-generate docs
1 parent 35987ee commit ea9fb5f

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

docs/plugins/treesitter.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,21 @@ opts = {
112112
config = function(_, opts)
113113
local TS = require("nvim-treesitter")
114114

115+
setmetatable(require("nvim-treesitter.install"), {
116+
__newindex = function(_, k)
117+
if k == "compilers" then
118+
vim.schedule(function()
119+
LazyVim.error({
120+
"Setting custom compilers for `nvim-treesitter` is no longer supported.",
121+
"",
122+
"For more info, see:",
123+
"- [compilers](https://docs.rs/cc/latest/cc/#compile-time-requirements)",
124+
})
125+
end)
126+
end
127+
end,
128+
})
129+
115130
-- some quick sanity checks
116131
if not TS.get_installed then
117132
return LazyVim.error("Please use `:Lazy` and update `nvim-treesitter`")

0 commit comments

Comments
 (0)