updates...

This commit is contained in:
Solomon Laing 2025-10-23 14:59:52 +10:30
parent bc08c21a63
commit cd3b6a94e5
3 changed files with 18 additions and 18 deletions

View File

@ -30,13 +30,15 @@ return {
log_level = "DEBUG", log_level = "DEBUG",
}, },
adapters = { adapters = {
openai = function() http = {
return require("codecompanion.adapters").extend("openai", { openai = function()
env = { return require("codecompanion.adapters").extend("openai", {
api_key = "cmd:cat $HOME/.config/openai/KEY", env = {
}, api_key = "cmd:cat $HOME/.config/openai/KEY",
}) },
end, })
end,
},
}, },
}, },
}, },

View File

@ -21,7 +21,7 @@ function M.format()
end end
function M.on_attach(client, buf) 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", { vim.api.nvim_create_autocmd("BufWritePre", {
group = vim.api.nvim_create_augroup("LspFormat." .. buf, {}), group = vim.api.nvim_create_augroup("LspFormat." .. buf, {}),
buffer = buf, buffer = buf,

View File

@ -54,20 +54,17 @@ return {
}, },
}, },
}, },
rust_analyzer = {
mason = false,
cmd = {
"rustup",
"run",
"stable",
"rust-analyzer",
},
},
omnisharp = {}, omnisharp = {},
powershell_es = { powershell_es = {
bundle_path = 'c:/Users/Solomon/scripts/PowerShellEditorServices', bundle_path = 'c:/Users/Solomon/scripts/PowerShellEditorServices',
shell = 'powershell.exe', 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 = { setup = {
-- additional setup can be added here. -- additional setup can be added here.
@ -146,7 +143,8 @@ return {
return return
end end
end end
require("lspconfig")[server].setup(server_opts) vim.lsp.enable(server)
vim.lsp.config(server, server_opts)
end end
-- get all the servers that are available thourgh mason-lspconfig -- get all the servers that are available thourgh mason-lspconfig