mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-09-06 10:21:31 +00:00
plugins/treesitter: allow highlight
to be fine-grained
This commit is contained in:
parent
49b705b6aa
commit
5e08ed42e7
2 changed files with 42 additions and 4 deletions
|
@ -6,7 +6,9 @@
|
|||
}: let
|
||||
inherit (lib.modules) mkIf mkMerge;
|
||||
inherit (lib.lists) optional;
|
||||
inherit (lib.trivial) boolToString;
|
||||
inherit (lib.nvim.binds) mkSetBinding addDescriptionsToMappings;
|
||||
inherit (lib.nvim.lua) toLuaObject;
|
||||
inherit (lib.nvim.dag) entryBefore entryAnywhere;
|
||||
|
||||
cfg = config.vim.treesitter;
|
||||
|
@ -50,8 +52,8 @@ in {
|
|||
ensure_installed = {},
|
||||
|
||||
highlight = {
|
||||
enable = true,
|
||||
disable = {},
|
||||
enable = ${boolToString cfg.highlight.enable},
|
||||
disable = ${toLuaObject cfg.highlight.disable},
|
||||
},
|
||||
|
||||
incremental_selection = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue