mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 00:25:42 +02:00
treewide: use mkWarnings where possible
This commit is contained in:
parent
abba4af10b
commit
12e658eca8
34 changed files with 309 additions and 225 deletions
|
@ -90,9 +90,12 @@ lib.nixvim.plugins.mkNeovimPlugin {
|
|||
};
|
||||
|
||||
extraConfig = cfg: {
|
||||
warnings = lib.mkIf (!config.plugins.lsp.enable) [
|
||||
"You have enabled `plugins.lsp-format` but have `plugins.lsp` disabled."
|
||||
];
|
||||
warnings = lib.nixvim.mkWarnings "plugins.lsp-format" {
|
||||
when = !config.plugins.lsp.enable;
|
||||
message = ''
|
||||
This plugin requires `plugins.lsp` to be enabled.
|
||||
'';
|
||||
};
|
||||
|
||||
plugins.lsp = {
|
||||
onAttach =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue