1
0
Fork 0
mirror of https://github.com/nix-community/nixvim.git synced 2025-11-28 21:21:03 +01:00
nixvim/plugins/languages/treesitter.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 ];
};
}
}