1
0
mirror of https://github.com/dcarrillo/dotfiles.git synced 2025-07-01 18:39:27 +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

@ -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" },