-
Notifications
You must be signed in to change notification settings - Fork 2.4k
feat: add lsp-ai support #3206
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
feat: add lsp-ai support #3206
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| return { | ||
| default_config = { | ||
| cmd = { 'lsp-ai' }, | ||
| filetypes = {}, | ||
| root_dir = nil, | ||
| single_file_support = true, | ||
| init_options = { | ||
| memory = { | ||
| file_store = vim.empty_dict(), | ||
| }, | ||
| models = vim.empty_dict(), | ||
| }, | ||
| }, | ||
| docs = { | ||
| [[ | ||
| https://github.com/SilasMarvin/lsp-ai | ||
|
|
||
| LSP-AI is an open source language server that serves as a backend for AI-powered functionality in your favorite code | ||
| editors. It offers features like in-editor chatting with LLMs and code completions. | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. How does chat work? Is that a custom lsp request?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There's one available ( |
||
|
|
||
|
|
||
| You will need to provide configuration for the inference backends and models you want to use, as well as configure | ||
| completion/code actions. See the [wiki docs](https://github.com/SilasMarvin/lsp-ai/wiki/Configuration) and | ||
| [examples](https://github.com/SilasMarvin/lsp-ai/blob/main/examples/nvim) for more information. | ||
| ]], | ||
| }, | ||
| } | ||
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Getting an issue downstream with this being a table instead of just a string, do we need to support the
descsometimes being a table of strings ?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pr welcome
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was just double checking whether it was supposed to only be strings or you do expect tables for this, if it can be changed I can do a quick PR. Created #3374 to address
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah that looks like a mistake on my part thanks for the PR 👍