mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-22 17:03:31 +02:00
lightline: support all options of the official plugin
This commit is contained in:
parent
2c9631997f
commit
18d6f8da5f
4 changed files with 99 additions and 3 deletions
19
plugins/languages/treesitter.nix
Normal file
19
plugins/languages/treesitter.nix
Normal 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 ];
|
||||
};
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue