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