mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-28 19:40:06 +02:00
19 lines
416 B
Nix
19 lines
416 B
Nix
{ 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 ];
|
|
};
|
|
}
|
|
}
|