lightline: support all options of the official plugin

This commit is contained in:
Pedro Alves 2020-12-31 18:15:19 +00:00
parent 2c9631997f
commit 18d6f8da5f
4 changed files with 99 additions and 3 deletions

View file

@ -0,0 +1,19 @@
{ pkgs, lib, config, ... }:
with lib;
let
cfg = programs.nixvim.plugins.treesitter;
in
{
options = {
# TODO we need some treesitter configuration, all done in lua!
programs.nixvim.plugins.treesitter = {
enable = mkEnableOption "Enable treesitter highlighting";
};
};
config = mkIf cfg.enable {
programs.nixvim = {
extraPlugins = [ pkgs.vimPlugins.nvim-treesitter ];
};
}
}