mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-24 20:54:56 +02:00
plugins/obsidian: adapt options (now using the obsidian-nvim community fork)
This commit is contained in:
parent
db01a0dd97
commit
c9597b37d8
3 changed files with 44 additions and 7 deletions
|
@ -88,12 +88,21 @@ lib.nixvim.plugins.mkNeovimPlugin {
|
|||
};
|
||||
|
||||
extraConfig = cfg: {
|
||||
warnings = lib.nixvim.mkWarnings "plugins.obsidian" {
|
||||
when = (cfg.settings.completion.nvim_cmp == true) && (!config.plugins.cmp.enable);
|
||||
message = ''
|
||||
You have enabled `completion.nvim_cmp` but `plugins.cmp.enable` is `false`.
|
||||
You should probably enable `nvim-cmp`.
|
||||
'';
|
||||
};
|
||||
warnings = lib.nixvim.mkWarnings "plugins.obsidian" [
|
||||
{
|
||||
when = (cfg.settings.completion.nvim_cmp == true) && (!config.plugins.cmp.enable);
|
||||
message = ''
|
||||
You have enabled `completion.nvim_cmp` but `plugins.cmp.enable` is `false`.
|
||||
You should probably enable `nvim-cmp`.
|
||||
'';
|
||||
}
|
||||
{
|
||||
when = (cfg.settings.completion.blink == true) && (!config.plugins.blink-cmp.enable);
|
||||
message = ''
|
||||
You have enabled `completion.blink` but `plugins.blink-cmp.enable` is `false`.
|
||||
You should probably enable `blink-cmp`.
|
||||
'';
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue