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,6 +30,7 @@ return {
log_level = "DEBUG",
},
adapters = {
http = {
openai = function()
return require("codecompanion.adapters").extend("openai", {
env = {
@ -40,4 +41,5 @@ return {
},
},
},
},
}

View File

@ -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,

View File

@ -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