mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-23 20:25:08 +02:00
treewide: use mkWarnings wherever possible
This commit is contained in:
parent
2ec6218f87
commit
60adb6c56b
17 changed files with 158 additions and 122 deletions
|
@ -122,10 +122,14 @@ lib.nixvim.plugins.mkNeovimPlugin {
|
|||
};
|
||||
|
||||
extraConfig = cfg: {
|
||||
warnings = lib.optionals (!config.plugins.lsp.enable) ''
|
||||
Nixvim (plugins.clangd-extensions): You have enabled `clangd-extensions` but not the lsp (`plugins.lsp`).
|
||||
You should set `plugins.lsp.enable = true` to make use of the clangd-extensions' features.
|
||||
'';
|
||||
warnings = lib.nixvim.mkWarnings "plugins.clangd-extensions" {
|
||||
when = !config.plugins.lsp.enable;
|
||||
|
||||
message = ''
|
||||
You have enabled `clangd-extensions` but not the lsp (`plugins.lsp`).
|
||||
You should set `plugins.lsp.enable = true` to make use of the clangd-extensions' features.
|
||||
'';
|
||||
};
|
||||
|
||||
plugins.lsp = {
|
||||
servers.clangd = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue