Skip to content
This repository was archived by the owner on Jan 18, 2025. It is now read-only.

Commit

Permalink
Fix avante copiltochat
Browse files Browse the repository at this point in the history
  • Loading branch information
crivotz committed Dec 11, 2024
1 parent d2113d4 commit 3774f88
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 3 deletions.
43 changes: 43 additions & 0 deletions lua/plugins/avante.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
return {
"yetone/avante.nvim",
event = "VeryLazy",
lazy = false,
version = false, -- set this if you want to always pull the latest change
enabled = false, -- set this if you want to always pull the latest change
opts = {
-- add any opts here
provider = "copilot",
copilot = {
model = "claude-3.5-sonnet",
},
},
-- if you want to build from source then do `make BUILD_FROM_SOURCE=true`
build = "make",
-- build = "powershell -ExecutionPolicy Bypass -File Build.ps1 -BuildFromSource false" -- for windows
dependencies = {
"stevearc/dressing.nvim",
"nvim-lua/plenary.nvim",
"MunifTanjim/nui.nvim",
--- The below dependencies are optional,
"hrsh7th/nvim-cmp", -- autocompletion for avante commands and mentions
"nvim-tree/nvim-web-devicons", -- or echasnovski/mini.icons
"zbirenbaum/copilot.lua", -- for providers='copilot'
{
-- support for image pasting
"HakonHarnes/img-clip.nvim",
event = "VeryLazy",
opts = {
-- recommended settings
default = {
embed_image_as_base64 = false,
prompt_for_file_name = false,
drag_and_drop = {
insert_mode = true,
},
-- required for Windows users
use_absolute_path = true,
},
},
},
},
}
1 change: 1 addition & 0 deletions lua/plugins/copilotchat.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
return {
"CopilotC-Nvim/CopilotChat.nvim",
lazy = false,
enabled = true,
branch = "main",
dependencies = {
{ "zbirenbaum/copilot.lua" }, -- or github/copilot.vim
Expand Down
2 changes: 1 addition & 1 deletion lua/plugins/fzf-lua.lua
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ return {
{ "<leader>p", ":GitProjects<CR>", noremap = true, silent = true, desc = "Git files" },
{ "<leader>g", ":FzfLua git_status<CR>", noremap = true, silent = true, desc = "Git status" },
{ "<leader>ll", ":FzfLua grep { search = vim.fn.input('GREP -> ') }<CR>", noremap = true, silent = true, desc = "Grep a word" },
{ "<leader>y", ":lua require('neoclip.fzf')()<CR>", noremap = true, silent = true, desc = "Neoclip" },
{ "<leader>y", ":lua require('neoclip.fzf')('a')<CR>", noremap = true, silent = true, desc = "Neoclip" },
{ "<leader>ns", ":FzfLua live_grep({ prompt='Note', cwd = '~/Notes'})<CR>", noremap = true, silent = true, desc = "Note" },
},
config = function()
Expand Down
6 changes: 4 additions & 2 deletions lua/plugins/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ return {
},
{
"AckslD/nvim-neoclip.lua",
requires = {
{ 'ibhagwan/fzf-lua' }
},
config = function()
require("neoclip").setup()
end
Expand Down Expand Up @@ -347,8 +350,7 @@ return {
{
"OXY2DEV/markview.nvim",
lazy = false, -- Recommended
-- ft = "markdown" -- If you decide to lazy-load anyway

ft = { "markdown", "Avante" }, -- If you decide to lazy-load anyway
dependencies = {
"nvim-treesitter/nvim-treesitter",
"nvim-tree/nvim-web-devicons"
Expand Down

0 comments on commit 3774f88

Please sign in to comment.