mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-24 01:38:40 +02:00
plugins/otter: add warning if treesitter highlighting not set
This commit is contained in:
parent
91130385ed
commit
10e5066a9a
1 changed files with 10 additions and 0 deletions
|
@ -83,4 +83,14 @@ helpers.neovim-plugin.mkNeovimPlugin config {
|
|||
When true, otter handles these cases fully. This is a (minor) performance hit.
|
||||
'';
|
||||
};
|
||||
|
||||
extraConfig = cfg: {
|
||||
warnings =
|
||||
lib.optional (cfg.enable && config.plugins.treesitter.settings.highlight.enable == null)
|
||||
''
|
||||
NixVim(plugins.otter): you have enabled otter, but `plugins.treesitter.settings.highlight.enable` is not enabled.
|
||||
Otter functionality might not work as expected without it and `plugins.treesitter.enable` enabled.
|
||||
'';
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue