2024-01-26 11:31:34 -06:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
pkgs,
|
|
|
|
helpers,
|
|
|
|
config,
|
|
|
|
...
|
|
|
|
}:
|
2024-02-16 13:58:03 +01:00
|
|
|
with lib;
|
2024-09-01 12:36:31 +01:00
|
|
|
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-01-26 11:31:34 -06:00
|
|
|
|
2024-05-05 19:39:35 +02:00
|
|
|
maintainers = [ lib.maintainers.GaetanLepage ];
|
2024-01-26 11:31:34 -06:00
|
|
|
|
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`.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|