Open bottob opened 3 weeks ago
Code like https://github.com/Exafunction/codeium.nvim/blob/d3b88eb3aa1de6da33d325c196b8a41da2bcc825/lua/codeium/source.lua#L152 tries to get all content of files will be called on every completion request and will significantly slow down editor.
By communicating with LSP, we could use text document sync feature to enable incremental updates of opened files and avoid ineffcient operations like retriving all files content on client side.
Code like https://github.com/Exafunction/codeium.nvim/blob/d3b88eb3aa1de6da33d325c196b8a41da2bcc825/lua/codeium/source.lua#L152 tries to get all content of files will be called on every completion request and will significantly slow down editor.
By communicating with LSP, we could use text document sync feature to enable incremental updates of opened files and avoid ineffcient operations like retriving all files content on client side.