mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-16 12:14:32 +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
|
@ -44,10 +44,13 @@ lib.nixvim.plugins.mkNeovimPlugin {
|
|||
};
|
||||
|
||||
extraConfig = cfg: {
|
||||
warnings = optional (!config.plugins.lsp.enable) ''
|
||||
You have enabled `ltex-extra` but not the lsp (`plugins.lsp`).
|
||||
You should set `plugins.lsp.enable = true` to make use of the LTeX_extra plugin's features.
|
||||
'';
|
||||
warnings = lib.nixvim.mkWarnings "plugins.ltex-extra" {
|
||||
when = !config.plugins.lsp.enable;
|
||||
message = ''
|
||||
You have enabled `ltex-extra` but not the lsp (`plugins.lsp`).
|
||||
You should set `plugins.lsp.enable = true` to make use of the LTeX_extra plugin's features.
|
||||
'';
|
||||
};
|
||||
|
||||
plugins.lsp = {
|
||||
servers.ltex = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue