Exafunction / codeium.nvim

A native neovim extension for Codeium
MIT License
639 stars 50 forks source link

[FR] Use nvim builtin LSP client by `--enable_lsp` #196

Open bottob opened 3 weeks ago

bottob commented 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.