nix-community.nixvim/plugins/by-name/haskell-scope-highlighting/default.nix
Matt Sturgeon 7b94afceaf
plugins: cleanup most extraConfig args
- Remove `cfg` where it is unused.
- Use `opts` where necessary.
2024-11-20 20:55:16 +00:00

21 lines
562 B
Nix

{
lib,
helpers,
config,
...
}:
with lib;
helpers.vim-plugin.mkVimPlugin {
name = "haskell-scope-highlighting";
originalName = "haskell-scope-highlighting.nvim";
package = "haskell-scope-highlighting-nvim";
maintainers = [ lib.maintainers.GaetanLepage ];
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`.
'';
};
}