nix-community.nixvim/plugins/languages/haskell-scope-highlighting.nix

23 lines
594 B
Nix
Raw Normal View History

{
lib,
pkgs,
helpers,
config,
...
}:
with lib;
helpers.vim-plugin.mkVimPlugin {
2024-05-05 19:39:35 +02:00
name = "haskell-scope-highlighting";
originalName = "haskell-scope-highlighting.nvim";
defaultPackage = pkgs.vimPlugins.haskell-scope-highlighting-nvim;
2024-05-05 19:39:35 +02:00
maintainers = [ lib.maintainers.GaetanLepage ];
2024-05-05 19:39:35 +02:00
extraConfig = _: {
warnings = optional (!config.plugins.treesitter.enable) ''
Nixvim (plugins.haskell-scope-highlighting): haskell-scope-highlighting needs treesitter to function as intended.
Please, enable it by setting `plugins.treesitter.enable` to `true`.
'';
};
}