ray-x / cmp-treesitter

cmp source for treesitter
GNU General Public License v3.0
238 stars 10 forks source link

Strange error causing massive performance degradation #9

Open ghost opened 1 year ago

ghost commented 1 year ago
stack traceback:
        ...rapped-bad218c/share/nvim/runtime/lua/vim/treesitter.lua:28: in function '__index'                                            
        ...s/start/cmp-treesitter/lua/cmp_treesitter/treesitter.lua:43: in function <...s/start/cmp-treesitter/lua/cmp_treesitter/treesitter.lua:31
>

This appears briefly upon typing in insert mode and typing... I'm not sure how to get more context for what's happening here.

ray-x commented 1 year ago

Do you have an init.lua so I can reproduce the issue you saw? Also what is the language/treesitter parser you are using? And what is the neovim version?

eHattori commented 1 year ago

Hey folks, I've encountered this problem where I'm testing all my plugins. However, when I enable the cmd-treesitter, the CPU usage skyrockets to 100%

my config: https://github.com/eHattori/dotenv/blob/main/nvim/lua/settings/completion.lua