SmiteshP/nvim-gps

Module 'nvim-treesitter.query' not found

Ritzier opened this issue · 5 comments

Error detected while processing /home/ritzier/.local/share/nvim/site/pack/packer/start/nvim-gps/plugin/nvim-gps.vim:
line 1:
E5108: Error executing lua ...ite/pack/packer/start/nvim-gps/lua/nvim-gps/internal.lua:1: module 'nvim-treesitter.query'

Have you installed nvim-treesitter plugin too? nvim-gps depends on it.

Closing, hopefully you were able to fix it.

I have the same error and I have alse installed nvim-treesitter

Try remove these two plugins, install nvim-treesitter and then install nvim-gps

I had the same problem using Packer. I fixed the issue by adding a after clause:

-- Simple statusline component that shows what scope you are working inside
use {
    'SmiteshP/nvim-gps',
    after = 'nvim-treesitter',
    requires = { 'nvim-treesitter/nvim-treesitter' },
    config = function()
        require('nvim-gps').setup()
    end,
}