mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-03-10 09:27:25 +00:00
docs: better error and ref to checkhealth for nvim-treesitter main
This commit is contained in:
2
NEWS.md
2
NEWS.md
@@ -12,6 +12,8 @@ Going forward, **LazyVim** requires **Neovim** `>= 0.11.2`, and drops support fo
|
|||||||
- configure **LSP** with the native `vim.lsp.config`
|
- configure **LSP** with the native `vim.lsp.config`
|
||||||
- migrated **mason.nvim** and **mason-lspconfig.nvim** to `v2.x`
|
- migrated **mason.nvim** and **mason-lspconfig.nvim** to `v2.x`
|
||||||
- migrated to [nvim-treesitter](https://github.com/nvim-treesitter/nvim-treesitter/tree/main) **main** branch
|
- migrated to [nvim-treesitter](https://github.com/nvim-treesitter/nvim-treesitter/tree/main) **main** branch
|
||||||
|
- with the new version, the `tree-sitter` cli is **required** to install parsers
|
||||||
|
- best to run `:checkhealth nvim_treesitter` after updating
|
||||||
- replace `nvim-treesitter` incremental selection with `flash.nvim`, since it is no longer supported
|
- replace `nvim-treesitter` incremental selection with `flash.nvim`, since it is no longer supported
|
||||||
- enabled [blink.cmp](https://github.com/saghen/blink.cmp) **cmdline** completions
|
- enabled [blink.cmp](https://github.com/saghen/blink.cmp) **cmdline** completions
|
||||||
- use **LSP** based folding when available (disable with `nvim-lspconfig.folds.enabled = false`)
|
- use **LSP** based folding when available (disable with `nvim-lspconfig.folds.enabled = false`)
|
||||||
|
|||||||
@@ -51,7 +51,10 @@ return {
|
|||||||
---@param opts TSConfig
|
---@param opts TSConfig
|
||||||
config = function(plugin, opts)
|
config = function(plugin, opts)
|
||||||
if vim.fn.executable("tree-sitter") == 0 then
|
if vim.fn.executable("tree-sitter") == 0 then
|
||||||
LazyVim.error("**treesitter-main** requires the `tree-sitter` executable to be installed")
|
LazyVim.error({
|
||||||
|
"**treesitter-main** requires the `tree-sitter` CLI executable to be installed.",
|
||||||
|
"Run `:checkhealth nvim_treesitter` for more information.",
|
||||||
|
})
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
if type(opts.ensure_installed) ~= "table" then
|
if type(opts.ensure_installed) ~= "table" then
|
||||||
|
|||||||
Reference in New Issue
Block a user