From cd3b6a94e50319159052e9c0dd3087d5715b4f5d Mon Sep 17 00:00:00 2001 From: Solomon Laing Date: Thu, 23 Oct 2025 14:59:52 +1030 Subject: [PATCH] updates... --- .../nvim/lua/lazyvim/plugins/codecompanion.lua | 16 +++++++++------- .../nvim/lua/lazyvim/plugins/lsp/format.lua | 2 +- .config/nvim/lua/lazyvim/plugins/lsp/init.lua | 18 ++++++++---------- 3 files changed, 18 insertions(+), 18 deletions(-) diff --git a/.config/nvim/lua/lazyvim/plugins/codecompanion.lua b/.config/nvim/lua/lazyvim/plugins/codecompanion.lua index 0491616..e21777c 100644 --- a/.config/nvim/lua/lazyvim/plugins/codecompanion.lua +++ b/.config/nvim/lua/lazyvim/plugins/codecompanion.lua @@ -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, + }, }, }, }, diff --git a/.config/nvim/lua/lazyvim/plugins/lsp/format.lua b/.config/nvim/lua/lazyvim/plugins/lsp/format.lua index 8a5ca9b..c6e28ae 100644 --- a/.config/nvim/lua/lazyvim/plugins/lsp/format.lua +++ b/.config/nvim/lua/lazyvim/plugins/lsp/format.lua @@ -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, diff --git a/.config/nvim/lua/lazyvim/plugins/lsp/init.lua b/.config/nvim/lua/lazyvim/plugins/lsp/init.lua index 56520a7..dc7aeec 100644 --- a/.config/nvim/lua/lazyvim/plugins/lsp/init.lua +++ b/.config/nvim/lua/lazyvim/plugins/lsp/init.lua @@ -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