plugins/obsidian: deprecate completion.{blink,nvim-cmp} settings

Mirror upstream's deprecation.
This commit is contained in:
Matt Sturgeon 2026-06-15 19:01:57 +01:00 committed by Austin Horstman
parent 047bffb020
commit 0065d0b5e6
3 changed files with 34 additions and 18 deletions

View file

@ -25,12 +25,10 @@ lib.nixvim.plugins.mkNeovimPlugin {
}
];
new_notes_location = "current_dir";
completion = {
nvim_cmp = true;
min_chars = 2;
};
};
imports = [ ./deprecations.nix ];
extraConfig = cfg: {
warnings = lib.nixvim.mkWarnings "plugins.obsidian" [
{

View file

@ -0,0 +1,32 @@
{
lib,
config,
options,
...
}:
let
cfg = config.plugins.obsidian;
opts = options.plugins.obsidian;
in
{
warnings = lib.nixvim.mkWarnings "plugins.obsidian" [
# TODO: Added 2026-06-15; remove after 27.11
{
when = cfg.settings ? completion.nvim_cmp;
message = ''
`${opts.settings}.completion.nvim_cmp` is deprecated, please remove it from your config.
Completion is now provided via the built-in obsidian-ls LSP server instead.
Feature will be removed in obsidian.nvim 4.0
'';
}
# TODO: Added 2026-06-15; remove after 27.11
{
when = cfg.settings ? completion.blink;
message = ''
`${opts.settings}.completion.blink` is deprecated, please remove it from your config.
Completion is now provided via the built-in obsidian-ls LSP server instead.
Feature will be removed in obsidian.nvim 4.0
'';
}
];
}

View file

@ -37,27 +37,17 @@
}
];
new_notes_location = "current_dir";
completion = {
nvim_cmp = true;
blink = false;
min_chars = 2;
};
};
};
};
};
blink-cmp = {
# Issue within the obsidian.nvim plugin itself:
# ERROR: cmp.add_provider is deprecated, use cmp.add_source_provider instead.
test.runNvim = false;
plugins = {
blink-cmp.enable = true;
obsidian = {
enable = true;
settings = {
completion.blink = true;
workspaces = [
{
name = "foo";
@ -173,10 +163,6 @@
end
'';
disable_frontmatter = false;
completion = {
nvim_cmp = true;
min_chars = 2;
};
mappings = {
gf = {
action = "require('obsidian').util.gf_passthrough";