Compare commits

..

3 Commits

Author SHA1 Message Date
Raoul Branten
df51dab865 Implement CodeCompanion
This commit adds CodeCompanion.nvim as a plugin, configured to use Ollama as the
adapter for chat, inline, and command strategies. It also includes the necessary
dependencies, nvim-lua/plenary.nvim and nvim-treesitter/nvim-treesitter.
2025-05-13 13:32:53 +02:00
Raoul Branten
c0e795888e remove pastetoggle 2025-05-13 12:21:31 +02:00
Raoul Branten
ee9da45c25 Appimage v0.10 2025-05-13 12:20:35 +02:00
4 changed files with 42 additions and 3 deletions

View File

@ -14,7 +14,7 @@ vim.opt.colorcolumn = "81"
vim.opt.autoread = true
vim.opt.wildmode = 'longest,list'
vim.opt.ttyfast = true
vim.opt.pastetoggle = '<F3>'
-- vim.opt.pastetoggle = '<F3>'
-- formatting
vim.opt.expandtab = true

View File

@ -45,6 +45,30 @@ return require('packer').startup(function(use)
use "lukas-reineke/indent-blankline.nvim"
use "jeetsukumaran/vim-indentwise"
-- AI
use({
"olimorris/codecompanion.nvim",
config = function()
require("codecompanion").setup({
strategies = {
chat = {
adapter = "ollama",
},
inline = {
adapter = "ollama",
},
cmd = {
adapter = "ollama",
}
},
})
end,
requires = {
"nvim-lua/plenary.nvim",
"nvim-treesitter/nvim-treesitter",
}
})
-- Automatically set up your configuration after cloning packer.nvim
-- Put this at the end after all plugins
if packer_bootstrap then

Binary file not shown.

View File

@ -49,8 +49,8 @@ local function save_profiles(threshold)
end
time([[Luarocks path setup]], true)
local package_path_str = "/home/produktr/.cache/nvim/packer_hererocks/2.1.1692716794/share/lua/5.1/?.lua;/home/produktr/.cache/nvim/packer_hererocks/2.1.1692716794/share/lua/5.1/?/init.lua;/home/produktr/.cache/nvim/packer_hererocks/2.1.1692716794/lib/luarocks/rocks-5.1/?.lua;/home/produktr/.cache/nvim/packer_hererocks/2.1.1692716794/lib/luarocks/rocks-5.1/?/init.lua"
local install_cpath_pattern = "/home/produktr/.cache/nvim/packer_hererocks/2.1.1692716794/lib/lua/5.1/?.so"
local package_path_str = "/home/produktr/.cache/nvim/packer_hererocks/2.1.1713484068/share/lua/5.1/?.lua;/home/produktr/.cache/nvim/packer_hererocks/2.1.1713484068/share/lua/5.1/?/init.lua;/home/produktr/.cache/nvim/packer_hererocks/2.1.1713484068/lib/luarocks/rocks-5.1/?.lua;/home/produktr/.cache/nvim/packer_hererocks/2.1.1713484068/lib/luarocks/rocks-5.1/?/init.lua"
local install_cpath_pattern = "/home/produktr/.cache/nvim/packer_hererocks/2.1.1713484068/lib/lua/5.1/?.so"
if not string.find(package.path, package_path_str, 1, true) then
package.path = package.path .. ';' .. package_path_str
end
@ -79,6 +79,12 @@ _G.packer_plugins = {
path = "/home/produktr/.local/share/nvim/site/pack/packer/start/SyntaxAttr.vim",
url = "https://github.com/vim-scripts/SyntaxAttr.vim"
},
["codecompanion.nvim"] = {
config = { "\27LJ\2\nÕ\1\0\0\5\0\f\0\0156\0\0\0'\2\1\0B\0\2\0029\0\2\0005\2\n\0005\3\4\0005\4\3\0=\4\5\0035\4\6\0=\4\a\0035\4\b\0=\4\t\3=\3\v\2B\0\2\1K\0\1\0\15strategies\1\0\1\15strategies\0\bcmd\1\0\1\fadapter\vollama\vinline\1\0\1\fadapter\vollama\tchat\1\0\3\vinline\0\bcmd\0\tchat\0\1\0\1\fadapter\vollama\nsetup\18codecompanion\frequire\0" },
loaded = true,
path = "/home/produktr/.local/share/nvim/site/pack/packer/start/codecompanion.nvim",
url = "https://github.com/olimorris/codecompanion.nvim"
},
["deadcolumn.nvim"] = {
loaded = true,
path = "/home/produktr/.local/share/nvim/site/pack/packer/start/deadcolumn.nvim",
@ -173,10 +179,19 @@ _G.packer_plugins = {
loaded = true,
path = "/home/produktr/.local/share/nvim/site/pack/packer/start/vim-gitgutter",
url = "https://github.com/airblade/vim-gitgutter"
},
["vim-indentwise"] = {
loaded = true,
path = "/home/produktr/.local/share/nvim/site/pack/packer/start/vim-indentwise",
url = "https://github.com/jeetsukumaran/vim-indentwise"
}
}
time([[Defining packer_plugins]], false)
-- Config for: codecompanion.nvim
time([[Config for codecompanion.nvim]], true)
try_loadstring("\27LJ\2\nÕ\1\0\0\5\0\f\0\0156\0\0\0'\2\1\0B\0\2\0029\0\2\0005\2\n\0005\3\4\0005\4\3\0=\4\5\0035\4\6\0=\4\a\0035\4\b\0=\4\t\3=\3\v\2B\0\2\1K\0\1\0\15strategies\1\0\1\15strategies\0\bcmd\1\0\1\fadapter\vollama\vinline\1\0\1\fadapter\vollama\tchat\1\0\3\vinline\0\bcmd\0\tchat\0\1\0\1\fadapter\vollama\nsetup\18codecompanion\frequire\0", "config", "codecompanion.nvim")
time([[Config for codecompanion.nvim]], false)
_G._packer.inside_compile = false
if _G._packer.needs_bufread == true then