Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
bottob opened this issue Jun 11, 2024 · 0 comments
Open

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

bottob opened this issue Jun 11, 2024 · 0 comments

Comments

@bottob
Copy link

bottob commented Jun 11, 2024

Code like

local lines = vim.api.nvim_buf_get_lines(bufnr, 0, -1, true)

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant