mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-03-10 09:27:25 +00:00
feat(treesitter): add installation instructions to get a C compiler on windows
This commit is contained in:
@@ -47,6 +47,9 @@ function M.check()
|
|||||||
"See the requirements at [nvim-treesitter](https://github.com/nvim-treesitter/nvim-treesitter/tree/main?tab=readme-ov-file#requirements)"
|
"See the requirements at [nvim-treesitter](https://github.com/nvim-treesitter/nvim-treesitter/tree/main?tab=readme-ov-file#requirements)"
|
||||||
)
|
)
|
||||||
info("Run `:checkhealth nvim-treesitter` for more information.")
|
info("Run `:checkhealth nvim-treesitter` for more information.")
|
||||||
|
if vim.fn.has("win32") == 1 and not health["C compiler"] then
|
||||||
|
info("Install a C compiler with `winget install --id=BrechtSanders.WinLibs.POSIX.UCRT -e`")
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -93,6 +93,9 @@ function M.build(cb)
|
|||||||
"See the requirements at [nvim-treesitter](https://github.com/nvim-treesitter/nvim-treesitter/tree/main?tab=readme-ov-file#requirements)",
|
"See the requirements at [nvim-treesitter](https://github.com/nvim-treesitter/nvim-treesitter/tree/main?tab=readme-ov-file#requirements)",
|
||||||
"Run `:checkhealth nvim-treesitter` for more information.",
|
"Run `:checkhealth nvim-treesitter` for more information.",
|
||||||
})
|
})
|
||||||
|
if vim.fn.has("win32") == 1 and not health["C compiler"] then
|
||||||
|
lines[#lines + 1] = "Install a C compiler with `winget install --id=BrechtSanders.WinLibs.POSIX.UCRT -e`"
|
||||||
|
end
|
||||||
vim.list_extend(lines, err and { "", err } or {})
|
vim.list_extend(lines, err and { "", err } or {})
|
||||||
LazyVim.error(lines, { title = "LazyVim Treesitter" })
|
LazyVim.error(lines, { title = "LazyVim Treesitter" })
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user