From 0eee62cfd5446ac3674fc177ce8abf1f68d8bf1a Mon Sep 17 00:00:00 2001 From: Solomon Laing Date: Fri, 9 May 2025 14:13:34 +0930 Subject: [PATCH] minor updates, mason v2 dropped and broke shit, chatgpt fun. --- .config/nvim/lua/lazyvim/plugins/lsp/init.lua | 6 +++++- .config/openai/.gitignore | 1 + .config/openai/install-chatgpt | 1 + .config/shell/profile | 1 + 4 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 .config/openai/.gitignore create mode 100755 .config/openai/install-chatgpt diff --git a/.config/nvim/lua/lazyvim/plugins/lsp/init.lua b/.config/nvim/lua/lazyvim/plugins/lsp/init.lua index 3445007..81d6a29 100644 --- a/.config/nvim/lua/lazyvim/plugins/lsp/init.lua +++ b/.config/nvim/lua/lazyvim/plugins/lsp/init.lua @@ -17,7 +17,10 @@ return { }, }, "mason.nvim", - "williamboman/mason-lspconfig.nvim", + { + "mason-org/mason-lspconfig.nvim", + version = "^1.0.0", + }, -- "hrsh7th/cmp-nvim-lsp", }, opts = { @@ -197,6 +200,7 @@ return { -- cmdline tools and lsp servers { "williamboman/mason.nvim", + version = "^1.0.0", enabled = true, cmd = "Mason", keys = { { "lM", "Mason", desc = "Mason" } }, diff --git a/.config/openai/.gitignore b/.config/openai/.gitignore new file mode 100644 index 0000000..e170489 --- /dev/null +++ b/.config/openai/.gitignore @@ -0,0 +1 @@ +KEY diff --git a/.config/openai/install-chatgpt b/.config/openai/install-chatgpt new file mode 100755 index 0000000..98c477d --- /dev/null +++ b/.config/openai/install-chatgpt @@ -0,0 +1 @@ +curl -L -o chatgpt https://github.com/kardolus/chatgpt-cli/releases/latest/download/chatgpt-linux-amd64 && chmod +x chatgpt && sudo mv chatgpt /usr/local/bin/ diff --git a/.config/shell/profile b/.config/shell/profile index 5dcd9e9..97116be 100644 --- a/.config/shell/profile +++ b/.config/shell/profile @@ -64,6 +64,7 @@ export REPOS="$HOME/repos" export GITUSER="inkletblot" export NOTE_DIR="$HOME/notes/" export DWM_DIR="$REPOS/gitlab.inkletblot.com/inkletblot/dwm-inkletblot/" +export OPENAI_API_KEY="$(cat "$HOME/.config/openai/KEY")" # This is something luke smith has in his profile (which I have stolen, it's nice but # doesn't work very nicely with my login manager, lightdm, and I prefer to just run