Skip to content

Commit 195b0ca

Browse files
committed
feat: add lsp-ai support
1 parent 0468010 commit 195b0ca

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

lua/lspconfig/configs/lsp_ai.lua

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
return {
2+
default_config = {
3+
cmd = { 'lsp-ai' },
4+
filetypes = {},
5+
root_dir = nil,
6+
single_file_support = true,
7+
init_options = {
8+
memory = {
9+
file_store = vim.fn.json_decode '{}',
10+
},
11+
},
12+
},
13+
docs = {
14+
[[
15+
https://github.com/SilasMarvin/lsp-ai
16+
17+
LSP-AI is an open source language server that serves as a backend for AI-powered functionality in your favorite code
18+
editors. It offers features like in-editor chatting with LLMs and code completions.
19+
20+
21+
You will need to provide configuration for the inference backends and models you want to use, as well as configure
22+
completion/code actions. See the [wiki docs](https://github.com/SilasMarvin/lsp-ai/wiki/Configuration) and
23+
[examples](https://github.com/SilasMarvin/lsp-ai/blob/main/examples/nvim) for more information.
24+
]],
25+
},
26+
}

0 commit comments

Comments
 (0)