Description
Since updating my Neovim packages recently, I have been getting this error when opening the Git Files dialog and then on every key press.
Neovim version
NVIM v0.11.2
Build type: Release
LuaJIT 2.1.1748459687
Operating system and version
macOS Sonoma 14.6.1
Telescope version / branch / rev
0.1.x branch
checkhealth telescope
telescope:
1 ⚠️
Checking for required plugins
- ✅ OK plenary installed.
- ✅ OK nvim-treesitter installed.
Checking external dependencies
- ✅ OK rg: found ripgrep 14.1.1
- ⚠️ WARNING fd: not found. Install [sharkdp/fd](https://github.com/ sharkdp/fd) for extended capabilities
===== Installed extensions =====
- ✅ OK lib working as expected
- ✅ OK file_sorter correctly configured
- ✅ OK generic_sorter correctly configured
Steps to reproduce
Have fzf installed. I have version 0.62.0 from Homebrew.
Have the following telescope plugins installed:
Plug 'nvim-telescope/telescope.nvim', { 'branch': '0.1.x' }
Plug 'nvim-telescope/telescope-fzf-native.nvim', { 'do': 'make' }
Plug 'nvim-telescope/telescope-symbols.nvim'
Here is my Telescope config:
local telescope = require("telescope")
local builtin = require("telescope.builtin")
telescope.setup {
pickers = {
buffers = { theme = "ivy" },
diagnostics = { theme = "ivy" },
find_files = { theme = "ivy" },
git_files = { theme = "ivy" },
help_tags = { theme = "ivy" },
keymaps = { theme = "ivy" },
live_grep = { theme = "ivy" },
lsp_references = { theme = "ivy" },
lsp_workspace_symbols = { theme = "ivy" },
symbols = { theme = "ivy" },
}
}
-- Extensions
telescope.load_extension("fzf")
-- Mappings (abbreviated)
vim.keymap.set('n', "<c-f>", builtin.git_files)
Attempt to use mapping to run the git_files builtin.
Expected behavior
No errors, can use fzf to select a file from the repo to edit.
Actual behavior
I can use fzf to select a file from the repo to edit and it works as expected, however I get the error below when opening the picker and on every key press.
Stack trace
Error executing vim.schedule lua callback: ...bundle/telescope.nvim/lua/telescope/previewers/utils.lua:135: attempt to call field 'ft_to_lang' (a nil v
alue)
stack traceback:
...bundle/telescope.nvim/lua/telescope/previewers/utils.lua:135: in function 'ts_highlighter'
...bundle/telescope.nvim/lua/telescope/previewers/utils.lua:119: in function 'highlighter'
...scope.nvim/lua/telescope/previewers/buffer_previewer.lua:247: in function ''
vim/_editor.lua: in function <vim/_editor.lua:0>
Screenshot
Minimal config
Description
Since updating my Neovim packages recently, I have been getting this error when opening the Git Files dialog and then on every key press.
Neovim version
Operating system and version
macOS Sonoma 14.6.1
Telescope version / branch / rev
0.1.x branch
checkhealth telescope
Steps to reproduce
Have
fzfinstalled. I have version 0.62.0 from Homebrew.Have the following telescope plugins installed:
Here is my Telescope config:
Attempt to use mapping to run the
git_filesbuiltin.Expected behavior
No errors, can use
fzfto select a file from the repo to edit.Actual behavior
I can use
fzfto select a file from the repo to edit and it works as expected, however I get the error below when opening the picker and on every key press.Stack trace
Screenshot
Minimal config