mirror of
https://github.com/NotAShelf/nvf.git
synced 2026-04-13 05:43:50 +00:00
treesitter: allow null in grammar options
This commit is contained in:
parent
f67bb5d0a2
commit
2656538a84
2 changed files with 5 additions and 2 deletions
|
|
@ -229,6 +229,9 @@
|
|||
|
||||
[Snoweuph](https://github.com/snoweuph)
|
||||
|
||||
- Fix `tressiter` to allow `null` in grammar options, so they can be filtered
|
||||
out.
|
||||
|
||||
- Added [Selenen](https://github.com/kampfkarren/selene) for more diagnostics in
|
||||
`languages.lua`.
|
||||
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
...
|
||||
}: let
|
||||
inherit (lib.options) mkOption mkEnableOption literalExpression;
|
||||
inherit (lib.types) listOf package bool;
|
||||
inherit (lib.types) listOf nullOr package bool;
|
||||
in {
|
||||
options.vim.treesitter = {
|
||||
enable = mkEnableOption "treesitter, also enabled automatically through language options";
|
||||
|
|
@ -13,7 +13,7 @@ in {
|
|||
autotagHtml = mkEnableOption "autoclose and rename html tag";
|
||||
|
||||
grammars = mkOption {
|
||||
type = listOf package;
|
||||
type = listOf (nullOr package);
|
||||
default = [];
|
||||
example = literalExpression ''
|
||||
with pkgs.vimPlugins.nvim-treesitter.grammarPlugins; [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue