You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When highlighting text (.txt) files in Telescope find_files, the following error is shown:
Error executing vim.schedule lua callback: ...99671/share/nvim/runtime/lua/vim/treesitter/language.lua:107: no parser for 'text' language, see :help treesitter-pars
ers
stack traceback:
[C]: in function 'error'
...99671/share/nvim/runtime/lua/vim/treesitter/language.lua:107: in function 'has_ts_parser'
...m/lazy/telescope.nvim/lua/telescope/previewers/utils.lua:173: in function 'ts_highlighter'
...m/lazy/telescope.nvim/lua/telescope/previewers/utils.lua:154: in function 'highlighter'
...scope.nvim/lua/telescope/previewers/buffer_previewer.lua:233: in function ''
vim/_editor.lua: in function <vim/_editor.lua:0>
==============================================================================
telescope: require("telescope.health").check()
Checking for required plugins ~
- OK plenary installed.
- OK nvim-treesitter installed.
Checking external dependencies ~
- OK rg: found ripgrep 14.1.0
- OK fd: found fd 10.1.0
===== Installed extensions ===== ~
Steps to reproduce
:Telescope find_files
Highlight any .txt file
Expected behavior
No error
Actual behavior
Error executing vim.schedule lua callback: ...99671/share/nvim/runtime/lua/vim/treesitter/language.lua:107: no parser for 'text' language, see :help treesitter-pars
ers
stack traceback:
[C]: in function 'error'
...99671/share/nvim/runtime/lua/vim/treesitter/language.lua:107: in function 'has_ts_parser'
...m/lazy/telescope.nvim/lua/telescope/previewers/utils.lua:173: in function 'ts_highlighter'
...m/lazy/telescope.nvim/lua/telescope/previewers/utils.lua:154: in function 'highlighter'
...scope.nvim/lua/telescope/previewers/buffer_previewer.lua:233: in function ''
vim/_editor.lua: in function <vim/_editor.lua:0>
Minimal config
localroot=vim.fn.fnamemodify("./.repro", ":p")
-- set stdpaths to use .reprofor_, nameinipairs { "config", "data", "state", "cache" } dovim.env[("XDG_%s_HOME"):format(name:upper())] =root.."/" ..nameend-- bootstrap lazylocallazypath=root.."/plugins/lazy.nvim"ifnotvim.uv.fs_stat(lazypath) thenvim.fn.system {
"git",
"clone",
"--filter=blob:none",
"https://github.com/folke/lazy.nvim.git",
lazypath,
}
endvim.opt.runtimepath:prepend(lazypath)
-- install pluginslocalplugins= {
{
"nvim-telescope/telescope.nvim",
dependencies= {
"nvim-lua/plenary.nvim",
},
config=function()
-- ADD INIT.LUA SETTINGS THAT ARE _NECESSARY_ FOR REPRODUCING THE ISSUErequire("telescope").setup {}
end,
},
}
require("lazy").setup(plugins, {
root=root.."/plugins",
})
The text was updated successfully, but these errors were encountered:
I had the same problem and I was using nightly build version of nvim, I had to upgrade from NVIM v0.11.0-dev-492+g0cdeb06db to NVIM v0.11.0-dev-1321+gfe1e2eff06 to resolve the issue.
I also tested on NVIM 0.10.2 and I don't see the problem either, so I guess you only see this if you are using an old unreleased/development version of nvim 0.11.0-dev
I see now you said
This happens on latest master, not on releases.
well, it seems resolved NVIM v0.11.0-dev-1321+gfe1e2eff06
Description
When highlighting text (.txt) files in
Telescope find_files
, the following error is shown:This happens on latest master, not on releases.
Neovim version
Operating system and version
macOS 15.0.1
Telescope version / branch / rev
master
checkhealth telescope
Steps to reproduce
:Telescope find_files
.txt
fileExpected behavior
No error
Actual behavior
Minimal config
The text was updated successfully, but these errors were encountered: