1
0
mirror of https://github.com/dcarrillo/dotfiles.git synced 2025-07-01 23:19:25 +00:00

[neovim] Tidy up blink and avante confs

This commit is contained in:
2025-02-07 18:43:12 +01:00
parent 3d5ae14006
commit d2322c41da
5 changed files with 38 additions and 24 deletions

View File

@ -266,10 +266,6 @@ require("lazy").setup({
event = "VeryLazy",
lazy = false,
version = false,
opts = {
provider = "copilot",
auto_suggestions_provider = "claude",
},
build = "make",
dependencies = {
"stevearc/dressing.nvim",

View File

@ -0,0 +1,7 @@
require("avante").setup({
provider = "copilot",
auto_suggestions_provider = "claude",
web_search_engine = {
provider = "tavily",
},
})

View File

@ -1,4 +1,11 @@
require("blink.cmp").setup({
-- disable completion for certain filetypes
enabled = function()
return not vim.tbl_contains({ "sagarename" }, vim.bo.filetype)
and vim.bo.buftype ~= "prompt"
and vim.b.completion ~= false
end,
appearance = {
use_nvim_cmp_as_default = false,
},
@ -9,6 +16,11 @@ require("blink.cmp").setup({
},
},
menu = {
-- don't show completion menu automatically when searching
auto_show = function(ctx)
return ctx.mode ~= "cmdline" or not vim.tbl_contains({ "/", "?" }, vim.fn.getcmdtype())
end,
border = "single",
draw = {
treesitter = { "lsp" },

View File

@ -1,5 +1,6 @@
require("plugins.blink")
require("plugins.copilot")
require("plugins.avante")
require("plugins.telescope")
require("plugins.starter")
require("plugins.treesitter")