mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-11-01 19:38:44 +00:00
plugins/treesitter: generate Lua configuration from Nix
This commit is contained in:
parent
c8d38872ab
commit
616c00ab46
2 changed files with 110 additions and 42 deletions
|
|
@ -60,15 +60,15 @@ in {
|
|||
|
||||
-- Indentation module for Treesitter
|
||||
indent = {
|
||||
enable = true,
|
||||
disable = {},
|
||||
enable = ${toLuaObject cfg.indent.enable},
|
||||
disable = ${toLuaObject cfg.indent.disable},
|
||||
},
|
||||
|
||||
-- Highlight module for Treesitter
|
||||
highlight = {
|
||||
enable = ${boolToString cfg.highlight.enable},
|
||||
enable = ${toLuaObject cfg.highlight.enable},
|
||||
disable = ${toLuaObject cfg.highlight.disable},
|
||||
additional_vim_regex_highlighting = false,
|
||||
additional_vim_regex_highlighting = ${toLuaObject cfg.highlight.additionalVimRegexHighlighting},
|
||||
},
|
||||
|
||||
-- Indentation module for Treesitter
|
||||
|
|
@ -76,13 +76,14 @@ in {
|
|||
-- handled by `vim.maps` entries calling lua
|
||||
-- functions achieving the same functionality.
|
||||
incremental_selection = {
|
||||
enable = true,
|
||||
disable = {},
|
||||
enable = ${toLuaObject cfg.incrementalSelection.enable},
|
||||
disable = ${toLuaObject cfg.incrementalSelection.disable},
|
||||
keymaps = {
|
||||
init_selection = false,
|
||||
node_incremental = false,
|
||||
scope_incremental = false,
|
||||
node_decremental = false,
|
||||
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue