Can't disable sources #613
-
I use the config in the return {
{
"saghen/blink.cmp",
lazy = false, -- lazy loading handled internally
-- optional: provides snippets for the snippet source
dependencies = "rafamadriz/friendly-snippets",
-- use a release tag to download pre-built binaries
version = "v0.*",
-- OR build from source, requires nightly: https://rust-lang.github.io/rustup/concepts/channels.html#working-with-nightly-rust
-- build = 'cargo build --release',
-- If you use nix, you can build from source using latest nightly rust with:
-- build = 'nix run .#build-plugin',
---@module 'blink.cmp'
---@type blink.cmp.Config
--- @diagnostic disable: missing-fields
opts = {
-- 'default' for mappings similar to built-in completion
-- 'super-tab' for mappings similar to vscode (tab to accept, arrow keys to navigate)
-- 'enter' for mappings similar to 'super-tab' but with 'enter' to accept
-- see the "default configuration" section below for full documentation on how to define
-- your own keymap.
keymap = { preset = "default" },
appearance = {
-- Sets the fallback highlight groups to nvim-cmp's highlight groups
-- Useful for when your theme doesn't support blink.cmp
-- will be removed in a future release
use_nvim_cmp_as_default = true,
-- Set to 'mono' for 'Nerd Font Mono' or 'normal' for 'Nerd Font'
-- Adjusts spacing to ensure icons are aligned
nerd_font_variant = "mono",
},
-- default list of enabled providers defined so that you can extend it
-- elsewhere in your config, without redefining it, via `opts_extend`
sources = {
default = {},
-- You may also define providers per filetype
per_filetype = {
lua = { "buffer" },
},
-- optionally disable cmdline completions
cmdline = {},
},
-- experimental signature help support
-- signature = { enabled = true }
},
-- allows extending the providers array elsewhere in your config
-- without having to redefine it
opts_extend = { "sources.default" },
},
} Problem: I put Version: v0.7.6 |
Beta Was this translation helpful? Give feedback.
Answered by
vunhatchuong
Dec 20, 2024
Replies: 2 comments
-
I'm able to reproduce this also with lazy.nvim Minit. vim.env.LAZY_STDPATH = ".repro"
load(vim.fn.system("curl -s https://raw.githubusercontent.com/folke/lazy.nvim/main/bootstrap.lua"))()
--- @diagnostic disable: missing-fields
require("lazy.minit").repro({
spec = {
{
"saghen/blink.cmp",
dependencies = "rafamadriz/friendly-snippets",
version = "v0.*",
opts_extend = { "sources.default" },
---@module 'blink.cmp'
---@type blink.cmp.Config
opts = {
keymap = { preset = "enter" },
sources = {
default = {},
per_filetype = {
lua = { "buffer" },
},
cmdline = {},
},
},
},
},
}) Despite an empty |
Beta Was this translation helpful? Give feedback.
0 replies
-
I'm so stupid I use a tag version and look at |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
vunhatchuong
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm so stupid I use a tag version and look at
main
docs...