mirror of
https://github.com/NotAShelf/nvf.git
synced 2024-11-23 05:40:44 +00:00
30 lines
720 B
Nix
30 lines
720 B
Nix
{
|
|
pkgs,
|
|
config,
|
|
lib,
|
|
...
|
|
}:
|
|
with lib;
|
|
with builtins; let
|
|
cfg = config.vim.treesitter;
|
|
usingNvimCmp = config.vim.autocomplete.enable && config.vim.autocomplete.type == "nvim-cmp";
|
|
in {
|
|
options.vim.treesitter = {
|
|
enable = mkEnableOption "treesitter, also enabled automatically through language options";
|
|
|
|
fold = mkEnableOption "fold with treesitter";
|
|
|
|
autotagHtml = mkEnableOption "autoclose and rename html tag";
|
|
|
|
grammars = mkOption {
|
|
type = with types; listOf package;
|
|
default = [];
|
|
description = nvim.nmd.asciiDoc ''
|
|
List of treesitter grammars to install. For supported languages
|
|
use the `vim.language.<lang>.treesitter` option
|
|
|
|
'';
|
|
};
|
|
};
|
|
}
|