updates...
This commit is contained in:
parent
bc08c21a63
commit
cd3b6a94e5
@ -30,13 +30,15 @@ return {
|
||||
log_level = "DEBUG",
|
||||
},
|
||||
adapters = {
|
||||
openai = function()
|
||||
return require("codecompanion.adapters").extend("openai", {
|
||||
env = {
|
||||
api_key = "cmd:cat $HOME/.config/openai/KEY",
|
||||
},
|
||||
})
|
||||
end,
|
||||
http = {
|
||||
openai = function()
|
||||
return require("codecompanion.adapters").extend("openai", {
|
||||
env = {
|
||||
api_key = "cmd:cat $HOME/.config/openai/KEY",
|
||||
},
|
||||
})
|
||||
end,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
@ -21,7 +21,7 @@ function M.format()
|
||||
end
|
||||
|
||||
function M.on_attach(client, buf)
|
||||
if client.supports_method("textDocument/formatting") then
|
||||
if client:supports_method("textDocument/formatting") then
|
||||
vim.api.nvim_create_autocmd("BufWritePre", {
|
||||
group = vim.api.nvim_create_augroup("LspFormat." .. buf, {}),
|
||||
buffer = buf,
|
||||
|
||||
@ -54,20 +54,17 @@ return {
|
||||
},
|
||||
},
|
||||
},
|
||||
rust_analyzer = {
|
||||
mason = false,
|
||||
cmd = {
|
||||
"rustup",
|
||||
"run",
|
||||
"stable",
|
||||
"rust-analyzer",
|
||||
},
|
||||
},
|
||||
omnisharp = {},
|
||||
powershell_es = {
|
||||
bundle_path = 'c:/Users/Solomon/scripts/PowerShellEditorServices',
|
||||
shell = 'powershell.exe',
|
||||
},
|
||||
angularls = {
|
||||
-- cmd = { "ngserver", "--stdio", "--tsProbeLocations", require("lazyvim.utils").get_root(), "--ngProbeLocations", require("lazyvim.utils").get_root(), },
|
||||
-- on_new_config = function(new_config, new_root_dir)
|
||||
-- new_config.cmd = cmd
|
||||
-- end,
|
||||
},
|
||||
},
|
||||
setup = {
|
||||
-- additional setup can be added here.
|
||||
@ -146,7 +143,8 @@ return {
|
||||
return
|
||||
end
|
||||
end
|
||||
require("lspconfig")[server].setup(server_opts)
|
||||
vim.lsp.enable(server)
|
||||
vim.lsp.config(server, server_opts)
|
||||
end
|
||||
|
||||
-- get all the servers that are available thourgh mason-lspconfig
|
||||
|
||||
Loading…
Reference in New Issue
Block a user