Skip to content

Commit 15b97b4

Browse files
committed
feat: add code companion and update configs
1 parent c1b173f commit 15b97b4

File tree

4 files changed

+53
-50
lines changed

4 files changed

+53
-50
lines changed

.config/nvim/lazy-lock.json

Lines changed: 24 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,34 @@
11
{
22
"Comment.nvim": { "branch": "master", "commit": "e30b7f2008e52442154b66f7c519bfd2f1e32acb" },
3-
"LuaSnip": { "branch": "master", "commit": "33b06d72d220aa56a7ce80a0dd6f06c70cd82b9d" },
3+
"LuaSnip": { "branch": "master", "commit": "c9b9a22904c97d0eb69ccb9bab76037838326817" },
44
"cmp-nvim-lsp": { "branch": "main", "commit": "99290b3ec1322070bcfb9e846450a46f6efa50f0" },
5-
"copilot.vim": { "branch": "release", "commit": "87038123804796ca7af20d1b71c3428d858a9124" },
6-
"cyberdream.nvim": { "branch": "main", "commit": "e46e958729a29492cc1681dac7bd8fd640a4d15b" },
5+
"codecompanion.nvim": { "branch": "main", "commit": "51fe5a782dbbd5cad8189420cb8d38fd7c245684" },
6+
"copilot.vim": { "branch": "release", "commit": "a9228e015528c9307890c48083c925eb98a64a79" },
7+
"cyberdream.nvim": { "branch": "main", "commit": "f36d7991b6373ebda9cfca20030aa1fca7328ea8" },
78
"diffview.nvim": { "branch": "main", "commit": "4516612fe98ff56ae0415a259ff6361a89419b0a" },
8-
"gen.nvim": { "branch": "main", "commit": "b9721662daedd880ca0a0358cf6ffbff60617ab3" },
9+
"fidget.nvim": { "branch": "main", "commit": "d9ba6b7bfe29b3119a610892af67602641da778e" },
910
"harpoon": { "branch": "master", "commit": "1bc17e3e42ea3c46b33c0bbad6a880792692a1b3" },
1011
"lazy.nvim": { "branch": "main", "commit": "6c3bda4aca61a13a9c63f1c1d1b16b9d3be90d7a" },
11-
"lsp-zero.nvim": { "branch": "v2.x", "commit": "9a686513eaaa13d737d0fec8956a18268ead8b29" },
12-
"lualine.nvim": { "branch": "master", "commit": "2a5bae925481f999263d6f5ed8361baef8df4f83" },
13-
"mason-lspconfig.nvim": { "branch": "main", "commit": "2daa8921b7afdcfa47419a21ea343c3df6d74fa0" },
14-
"mason.nvim": { "branch": "main", "commit": "e2f7f9044ec30067bc11800a9e266664b88cda22" },
15-
"mini.nvim": { "branch": "main", "commit": "4228f166ee9db3e910eea1915e2d3683028add47" },
16-
"neogit": { "branch": "master", "commit": "dc926b93e0bb0affce888f0014dbbfa31f966ef7" },
17-
"nvim-autopairs": { "branch": "master", "commit": "b464658e9b880f463b9f7e6ccddd93fb0013f559" },
18-
"nvim-cmp": { "branch": "main", "commit": "b555203ce4bd7ff6192e759af3362f9d217e8c89" },
19-
"nvim-dap": { "branch": "master", "commit": "a6070b4e9e9a8ff1bc513c3748eff27080b0f44a" },
20-
"nvim-lspconfig": { "branch": "master", "commit": "f1405c1ea5d7a1051a8ced3110d7cf3b8524041b" },
21-
"nvim-treesitter": { "branch": "master", "commit": "caba7ef3556079dec03407bcbb290ddc688ea06e" },
22-
"nvim-web-devicons": { "branch": "master", "commit": "6317aca1fd86cc8e8c5ad30029ae7640d566cec6" },
23-
"oil.nvim": { "branch": "master", "commit": "ba858b662599eab8ef1cba9ab745afded99cb180" },
12+
"lsp-zero.nvim": { "branch": "v2.x", "commit": "97366dabc117e5441aea543aad2ee587364a537c" },
13+
"lualine.nvim": { "branch": "master", "commit": "1517caa8fff05e4b4999857319d3b0609a7f57fa" },
14+
"mason-lspconfig.nvim": { "branch": "main", "commit": "1a31f824b9cd5bc6f342fc29e9a53b60d74af245" },
15+
"mason.nvim": { "branch": "main", "commit": "fc98833b6da5de5a9c5b1446ac541577059555be" },
16+
"mini.nvim": { "branch": "main", "commit": "939da402095a6ec4229e4de644451cda5bbc3fce" },
17+
"neogit": { "branch": "master", "commit": "6d1bd94f7fca92a50a892f494920696b5defa8c8" },
18+
"nvim-autopairs": { "branch": "master", "commit": "6522027785b305269fa17088395dfc0f456cedd2" },
19+
"nvim-cmp": { "branch": "main", "commit": "1e1900b0769324a9675ef85b38f99cca29e203b3" },
20+
"nvim-dap": { "branch": "master", "commit": "7aade9e99bef5f0735cf966e715b3ce45515d786" },
21+
"nvim-lspconfig": { "branch": "master", "commit": "d7c610491c4cbcd1dcd278eeecbab78814437bc4" },
22+
"nvim-treesitter": { "branch": "master", "commit": "aece1062335a9e856636f5da12d8a06c7615ce8a" },
23+
"nvim-web-devicons": { "branch": "master", "commit": "4c3a5848ee0b09ecdea73adcd2a689190aeb728c" },
24+
"oil.nvim": { "branch": "master", "commit": "ab887d926c2665a708fbe9e6c4654042cc5f4c60" },
2425
"playground": { "branch": "master", "commit": "ba48c6a62a280eefb7c85725b0915e021a1a0749" },
25-
"plenary.nvim": { "branch": "master", "commit": "2d9b06177a975543726ce5c73fca176cedbffe9d" },
26-
"render-markdown.nvim": { "branch": "main", "commit": "0022a579ac7355966be5ade77699b88c76b6a549" },
27-
"snacks.nvim": { "branch": "main", "commit": "98df370703b3c47a297988f3e55ce99628639590" },
26+
"plenary.nvim": { "branch": "master", "commit": "857c5ac632080dba10aae49dba902ce3abf91b35" },
27+
"render-markdown.nvim": { "branch": "main", "commit": "a1fc4e559252baa128c471adadf0be045abd542d" },
28+
"snacks.nvim": { "branch": "main", "commit": "bc0630e43be5699bb94dadc302c0d21615421d93" },
2829
"stay-centered.nvim": { "branch": "main", "commit": "e1a63ccaf2584e97c0ef8e64f9654c9a80d983f6" },
29-
"telescope.nvim": { "branch": "master", "commit": "2eca9ba22002184ac05eddbe47a7fe2d5a384dfc" },
30-
"undotree": { "branch": "master", "commit": "78b5241191852ffa9bb5da5ff2ee033160798c3b" },
30+
"telescope.nvim": { "branch": "master", "commit": "a4ed82509cecc56df1c7138920a1aeaf246c0ac5" },
31+
"undotree": { "branch": "master", "commit": "b951b87b46c34356d44aa71886aecf9dd7f5788a" },
3132
"vim-gofmt": { "branch": "master", "commit": "cea5b06b2c2646ced49a64f006be2edb42645dd1" },
32-
"which-key.nvim": { "branch": "main", "commit": "8ab96b38a2530eacba5be717f52e04601eb59326" }
33+
"which-key.nvim": { "branch": "main", "commit": "370ec46f710e058c9c1646273e6b225acf47cbed" }
3334
}

.config/nvim/lua/plugins/init.lua

Lines changed: 19 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -141,33 +141,6 @@ local plugs = {
141141
require('oil').setup{}
142142
end
143143
},
144-
-- TODO: Re-evaluate config eventually
145-
{
146-
'David-Kunz/gen.nvim',
147-
opts = {
148-
model = "llama3", -- The default model to use.
149-
host = "localhost", -- The host running the Ollama service.
150-
port = "11434", -- The port on which the Ollama service is listening.
151-
quit_map = "q", -- set keymap for close the response window
152-
retry_map = "<c-r>", -- set keymap to re-send the current prompt
153-
init = function(options) pcall(io.popen, "ollama serve > /dev/null 2>&1 &") end,
154-
-- Function to initialize Ollama
155-
command = function(options)
156-
local body = {model = options.model, stream = true}
157-
return "curl --silent --no-buffer -X POST http://" .. options.host .. ":" .. options.port .. "/api/chat -d $body"
158-
end,
159-
-- The command for the Ollama service. You can use placeholders $prompt, $model and $body (shellescaped).
160-
-- This can also be a command string.
161-
-- The executed command must return a JSON object with { response, context }
162-
-- (context property is optional).
163-
-- list_models = '<omitted lua function>', -- Retrieves a list of model names
164-
display_mode = "float", -- The display mode. Can be "float" or "split" or "horizontal-split".
165-
show_prompt = false, -- Shows the prompt submitted to Ollama.
166-
show_model = false, -- Displays which model you are using at the beginning of your chat session.
167-
no_auto_close = false, -- Never closes the window automatically.
168-
debug = false -- Prints errors and the command which is run.
169-
}
170-
},
171144
-- TODO: Re-evaluate config - not sure I'm ready to use it yet
172145
{
173146
"folke/snacks.nvim",
@@ -194,6 +167,25 @@ local plugs = {
194167
},
195168
{
196169
'mfussenegger/nvim-dap'
170+
},
171+
{
172+
'olimorris/codecompanion.nvim',
173+
dependencies = {
174+
'j-hui/fidget.nvim'
175+
},
176+
opts = {
177+
adapters = {
178+
copilot = function()
179+
return require("codecompanion.adapters").extend("copilot", {
180+
schema = {
181+
model = {
182+
default = "claude-3.7-sonnet",
183+
},
184+
},
185+
})
186+
end
187+
},
188+
},
197189
}
198190
}
199191

.zshrc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,13 @@ alias k="kubectl"
112112
alias v="nvim"
113113
alias tf="terraform"
114114
alias tg="terragrunt"
115+
alias za="zellij a main"
116+
alias zs="zellij -s main"
117+
alias gs="git status"
118+
alias gcm="git checkout main && git pull"
119+
alias gcr="git checkout main && git reset --hard origin/main"
120+
alias zd="zed ."
121+
115122

116123
# ranger
117124
alias rr="ranger"

Brewfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ brew "fd"
4747
brew "starship"
4848
brew "zellij"
4949
brew "bat"
50+
brew "k3d"
51+
brew "ansible"
5052

5153
cask "brave-browser"
5254
cask "cleanmymac"
@@ -55,6 +57,7 @@ cask "1password"
5557
cask "1password-cli"
5658
cask "notion"
5759
cask "rectangle"
60+
cask "flameshot"
5861

5962
# brew "hashicorp/tap/terraform-ls"
6063
# brew "helm-docs"

0 commit comments

Comments
 (0)