Repository navigation
Closed
Description
Before Reporting an Issue
-
I have read the kickstart.nvim README.md.
-
I have read the appropriate plugin's documentation.
-
I have searched that this issue has not been reported before.
-
By checking this, I confirm that the above steps are completed. I understand leaving this unchecked will result in this report being closed immediately.
Describe the bug
When I open nvim I see the following error. I initially saw this when using my kickstart branch, but I still see it when I use this repo.
I have removed any previous nvim data (~/.local/share/ngin, ~/.local/state/nvim, ~/.cache/nvim)
Failed to run `config` for nvim-treesitter
...local/share/nvim/lazy/lazy.nvim/lua/lazy/core/loader.lua:387: module 'nvim-treesitter.configs' not found:
no field package.preload['nvim-treesitter.configs']
cache_loader: module 'nvim-treesitter.configs' not found
cache_loader_lib: module 'nvim-treesitter.configs' not found
no file './nvim-treesitter/configs.lua'
no file '/usr/share/luajit-2.1/nvim-treesitter/configs.lua'
no file '/usr/local/share/lua/5.1/nvim-treesitter/configs.lua'
no file '/usr/local/share/lua/5.1/nvim-treesitter/configs/init.lua'
no file '/usr/share/lua/5.1/nvim-treesitter/configs.lua'
no file '/usr/share/lua/5.1/nvim-treesitter/configs/init.lua'
no file './nvim-treesitter/configs.so'
no file '/usr/local/lib/lua/5.1/nvim-treesitter/configs.so'
no file '/usr/lib/lua/5.1/nvim-treesitter/configs.so'
no file '/usr/local/lib/lua/5.1/loadall.so'Archlin
no file './nvim-treesitter.so'
no file '/usr/local/lib/lua/5.1/nvim-treesitter.so'
no file '/usr/lib/lua/5.1/nvim-treesitter.so'
no file '/usr/local/lib/lua/5.1/loadall.so'
# stacktrace:
- .config/nvim/init.lua:248To Reproduce
- Start nvim
Desktop
- OS: Archlinux
- Terminal: bash 5.3.3
Neovim Version
NVIM v0.11.4
Build type: RelWithDebInfo
LuaJIT 2.1.1753364724Reacted by Andrew Arderne, fivepencils, Rutger Heijmerikx, Albin George, wfknock, Andrew Dunbar, Aurélio Sampaio Carrilho de Castro Póvoa, sharno, Ignat S., Edson Mendieta and 6 more
Metadata
Metadata
Assignees
Labels
No labels
Activity
zedmakesense commentedon Sep 29, 2025
did you check this -
line 248 in init.lua?
chrisolsen commentedon Sep 29, 2025
Yes, it is just the
require("lazy)https://github.com/chrisolsen/kickstart.nvim/blob/master/init.lua#L248
SetsuikiHyoryu commentedon Sep 30, 2025
Run
:checkhealthto see if there are any hints.Under normal circumstances,
nvim-treesittershould have a file like this:~/.local/share/nvim/lazy/nvim-treesitter/lua/nvim-treesitter/config.lua.If it’s missing, you can try reinstalling
nvim-treesitterfirst.chrisolsen commentedon Sep 30, 2025
It is there
Here is the
:checkhealthoutputcedieio commentedon Oct 1, 2025
Had the same issue, was thinking I had tree sitter on main version.
#1657 this PR fixed the error pop up on start.
zedmakesense commentedon Oct 1, 2025
The issue is solved right?
asdf8601 commentedon Oct 1, 2025
In case it helps, I've just commented on the line that contains the config reference:
Not sure of the implications of this, but at least I don't see that message every time I open a file.
I've noticed that this happened after updating tree-sitter; not sure what has changed on their side.
asdf8601 commentedon Oct 2, 2025
Specifying the branch name as master solves this issue.
Note: You have to remove the existing installation of treesitter and install it again to clone the right branch.
{ -- Highlight, edit, and navigate code 'nvim-treesitter/nvim-treesitter', lazy = false, build = ':TSUpdate', branch = 'master', -- NOTE: Use master for backwards compatibility. -- NOTE: this causes error on main main = 'nvim-treesitter.configs', -- Sets main module to use for opts opts = { ensure_installed = ensure_installed, auto_install = true, highlight = { enable = true, additional_vim_regex_highlighting = { 'ruby' }, }, indent = { enable = true, disable = { 'ruby' } }, }, -- NOTE: this causes error on main config = function(_, opts) -- require('config.treesitter').setup(opts) require('nvim-treesitter.configs').setup(opts) end, },philwhln commentedon Oct 16, 2025
In this commit,
nvim-treesitterrenamedconfigs.lua(plural) toconfig.lua.nvim-treesitter/nvim-treesitter@692b051
guru245 commentedon Dec 2, 2025
The question is why your nvim is looking for the
mainbranch ofnvim-treesitterinstead of themasterbranch. Sincemasteris still the default, your nvim should see the default branch unless you specify another one.captivus commentedon Dec 15, 2025
Lines 941 - 1001 of
init.luain PR #1657 solved this issue for me. (Replaced the code block 941:962 ininit.lua)harrishu888 commentedon Dec 18, 2025
Yep,
{ -- Highlight, edit, and navigate code
"nvim-treesitter/nvim-treesitter",
build = ":TSUpdate",
lazy = true, -- just here
main = "nvim-treesitter.configs", -- Sets main module to use for opts
-- [[ Configure Treesitter ]] See
:help nvim-treesitteropts = {
ensure_installed = {
"bash",
"c",
"diff",
"html",
"lua",
"luadoc",
"markdown",
"markdown_inline",
"query",
"vim",
"vimdoc",
},
-- Autoinstall languages that are not installed
auto_install = true,
highlight = {
enable = true,
-- Some languages depend on vim's regex highlighting system (such as Ruby) for indent rules.
-- If you are experiencing weird indenting issues, add the language to
-- the list of additional_vim_regex_highlighting and disabled languages for indent.
additional_vim_regex_highlighting = { "ruby" },
},
indent = { enable = true, disable = { "ruby" } },
},
-- There are additional nvim-treesitter modules that you can use to interact
-- with nvim-treesitter. You should go explore a few and see what interests you:
--
-- - Incremental selection: Included, see
:help nvim-treesitter-incremental-selection-mod-- - Show your current context: https://github.com/nvim-treesitter/nvim-treesitter-context
-- - Treesitter + textobjects: https://github.com/nvim-treesitter/nvim-treesitter-textobjects
},
Fix the treesitter config, as mentioned here: nvim-lua#1732 (comment)
RebelMoogle commentedon Jan 3, 2026
masteris no longer the default, the default has been switched tomain3 weeks ago: nvim-treesitter/nvim-treesitter@d3218d9fix treesitter by temporarily setting to master branch. need to have …
eamonburns commentedon Mar 6, 2026
@chrisolsen - I believe that this is no longer an issue in the latest version of kickstart.nvim
It looks like your fork (https://github.com/chrisolsen/kickstart.nvim#) is behind, so this should be fixed by updating it.
Specifically, look at the changes done to the nvim-treesitter plugin spec in
init.lua:chrisolsen/kickstart.nvim@master...nvim-lua:kickstart.nvim:master#diff-0fc5c43f6f1d7605fd7d16c088ba6b83f096eee8e2049517407bbaa27aa3a4f7R873-R904
oriori1703 commentedon Mar 10, 2026
@eamonburns seems correct.
Please reopen the issue if the issue persists after updating
fix treesitter by temporarily setting to master branch. need to have …