mirror of
https://github.com/d0zingcat/dotfiles.git
synced 2026-05-14 07:26:44 +00:00
23
nvim/lua/plugins/avante.lua
Normal file
23
nvim/lua/plugins/avante.lua
Normal file
@@ -0,0 +1,23 @@
|
||||
return {
|
||||
"yetone/avante.nvim",
|
||||
event = "VeryLazy",
|
||||
-- build = "make", -- This is Optional, only if you want to use tiktoken_core to calculate tokens count
|
||||
opts = {
|
||||
-- provider = "claude",
|
||||
provider = "openai",
|
||||
},
|
||||
dependencies = {
|
||||
"nvim-tree/nvim-web-devicons", -- or echasnovski/mini.icons
|
||||
"stevearc/dressing.nvim",
|
||||
"nvim-lua/plenary.nvim",
|
||||
"MunifTanjim/nui.nvim",
|
||||
--- The below is optional, make sure to setup it properly if you have lazy=true
|
||||
{
|
||||
'MeanderingProgrammer/render-markdown.nvim',
|
||||
opts = {
|
||||
file_types = { "markdown", "Avante" },
|
||||
},
|
||||
ft = { "markdown", "Avante" },
|
||||
},
|
||||
},
|
||||
}
|
||||
@@ -64,6 +64,8 @@ return {
|
||||
}
|
||||
}
|
||||
},
|
||||
crystalline = {},
|
||||
terraformls = {},
|
||||
jsonls = {},
|
||||
bashls = {},
|
||||
tsserver = {
|
||||
|
||||
@@ -20,6 +20,7 @@ return {
|
||||
vim.api.nvim_create_autocmd('BufEnter', { callback = close_nvim_tree })
|
||||
end,
|
||||
opts = {
|
||||
filters = { dotfiles = false, custom = { '^.git$' } },
|
||||
on_attach = function(bufnr)
|
||||
local function map(mode, l, r, opts)
|
||||
opts = opts or {}
|
||||
|
||||
Reference in New Issue
Block a user