Compare commits
2 Commits
d8dc7dd5b8
...
d4b5952743
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d4b5952743 | ||
|
|
2b73717ba2 |
@@ -3,11 +3,12 @@
|
||||
"auto-dark-mode.nvim": { "branch": "master", "commit": "e300259ec777a40b4b9e3c8e6ade203e78d15881" },
|
||||
"blink.cmp": { "branch": "main", "commit": "4b18c32adef2898f95cdef6192cbd5796c1a332d" },
|
||||
"cloak.nvim": { "branch": "main", "commit": "648aca6d33ec011dc3166e7af3b38820d01a71e4" },
|
||||
"codecompanion.nvim": { "branch": "main", "commit": "42cf6d1637fc8934421fe69745fd01098068ece6" },
|
||||
"diffview.nvim": { "branch": "main", "commit": "4516612fe98ff56ae0415a259ff6361a89419b0a" },
|
||||
"direnv.vim": { "branch": "master", "commit": "ab2a7e08dd630060cd81d7946739ac7442a4f269" },
|
||||
"emmet-vim": { "branch": "master", "commit": "e98397144982d1e75b20d94d55a82de3ec8f648d" },
|
||||
"friendly-snippets": { "branch": "main", "commit": "6cd7280adead7f586db6fccbd15d2cac7e2188b9" },
|
||||
"git-blame.nvim": { "branch": "master", "commit": "8503b199edf9a666fe7b1a989cf14e3c26b2eb03" },
|
||||
"git-blame.nvim": { "branch": "main", "commit": "5c536e2d4134d064aa3f41575280bc8a2a0e03d7" },
|
||||
"gitmoji.nvim": { "branch": "main", "commit": "2659de229c2b26d50732f1220700eebbcdb2d6ef" },
|
||||
"harpoon": { "branch": "harpoon2", "commit": "87b1a3506211538f460786c23f98ec63ad9af4e5" },
|
||||
"lazy.nvim": { "branch": "main", "commit": "306a05526ada86a7b30af95c5cc81ffba93fef97" },
|
||||
|
||||
20
nvim/.config/nvim/lua/yock/plugins/codecompanion.lua
Normal file
20
nvim/.config/nvim/lua/yock/plugins/codecompanion.lua
Normal file
@@ -0,0 +1,20 @@
|
||||
return {
|
||||
"olimorris/codecompanion.nvim",
|
||||
dependencies = {
|
||||
"nvim-lua/plenary.nvim",
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
},
|
||||
opts = {
|
||||
strategies = {
|
||||
chat = {
|
||||
adapter = {
|
||||
name = "opencode",
|
||||
model = "big-pickle",
|
||||
env = {
|
||||
api_key = "OPENCODE_API_KEY",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
@@ -9,7 +9,7 @@ return {
|
||||
preset = 'default',
|
||||
},
|
||||
sources = {
|
||||
default = { 'lsp', 'path', 'snippets', 'buffer' },
|
||||
default = { 'lsp', 'path', 'buffer' },
|
||||
},
|
||||
},
|
||||
opts_extend = { 'sources.default' },
|
||||
|
||||
@@ -1,5 +1,23 @@
|
||||
source ~/.env
|
||||
|
||||
# $PATH setup
|
||||
case `uname` in
|
||||
Darwin)
|
||||
export PATH=/Users/myockey/.local/bin:$PATH
|
||||
export PATH=/Users/myockey/.opencode/bin:$PATH
|
||||
export PATH=/Users/myockey/go/bin:$PATH
|
||||
;;
|
||||
Linux)
|
||||
export PATH=/home/myockey/.local/bin:$PATH
|
||||
export PATH=/home/myockey/.opencode/bin:$PATH
|
||||
export PATH=/home/myockey/go/bin:$PATH
|
||||
;;
|
||||
esac
|
||||
|
||||
# Zsh Completions
|
||||
autoload -Uz compinit
|
||||
compinit
|
||||
|
||||
# direnv
|
||||
eval "$(direnv hook zsh)"
|
||||
|
||||
@@ -18,8 +36,15 @@ if command -v pyenv &>/dev/null; then
|
||||
eval "$(pyenv init -)"
|
||||
fi
|
||||
|
||||
autoload -Uz compinit
|
||||
compinit
|
||||
# opencode
|
||||
if command -v opencode &>/dev/null; then
|
||||
eval "$(opencode completion)"
|
||||
else
|
||||
curl -fsSL https://opencode.ai/install | bash
|
||||
eval "$(opencode completion)"
|
||||
fi
|
||||
|
||||
|
||||
|
||||
# ZOxide, cd alternative
|
||||
eval "$(zoxide init --cmd cd zsh)"
|
||||
@@ -72,18 +97,6 @@ for file in $HOME/.functions/*.zsh; do
|
||||
done
|
||||
source $HOME/.scripts/geometry/geometry.zsh
|
||||
|
||||
case `uname` in
|
||||
Darwin)
|
||||
export PATH=/Users/myockey/.local/bin:$PATH
|
||||
export PATH=/Users/myockey/.opencode/bin:$PATH
|
||||
export PATH=/Users/myockey/go/bin:$PATH
|
||||
;;
|
||||
Linux)
|
||||
export PATH=/home/myockey/.local/bin:$PATH
|
||||
export PATH=/home/myockey/.opencode/bin:$PATH
|
||||
export PATH=/home/myockey/go/bin:$PATH
|
||||
;;
|
||||
esac
|
||||
|
||||
. "$HOME/.atuin/bin/env"
|
||||
|
||||
@@ -97,3 +110,6 @@ eval "$(atuin gen-completions --shell zsh)"
|
||||
# bun
|
||||
export BUN_INSTALL="$HOME/.bun"
|
||||
export PATH="$BUN_INSTALL/bin:$PATH"
|
||||
|
||||
# opencode
|
||||
export PATH=/Users/myockey/.opencode/bin:$PATH
|
||||
|
||||
Reference in New Issue
Block a user