File: lua/model_cmp/context.lua:33
Introduction: vim.treesitter.get_parser(0, self.lang, {}) uses 0 (current buffer) instead of self.bufnr. This defeats the purpose of the instance field and will cause incorrect results if the context engine is ever called for a non-current buffer.
Detailed Description: Change 0 to self.bufnr.
File:
lua/model_cmp/context.lua:33Introduction:
vim.treesitter.get_parser(0, self.lang, {})uses0(current buffer) instead ofself.bufnr. This defeats the purpose of the instance field and will cause incorrect results if the context engine is ever called for a non-current buffer.Detailed Description: Change
0toself.bufnr.