mirror of
https://github.com/folke/snacks.nvim
synced 2025-08-06 19:58:22 +00:00
feat(indent): move animate settings top-level, since they impact both scope and chunk
This commit is contained in:
parent
851dc7854b
commit
baf8c180d9
1 changed files with 11 additions and 11 deletions
|
@ -31,9 +31,6 @@ local defaults = {
|
|||
-- "SnacksIndent8",
|
||||
-- },
|
||||
},
|
||||
---@class snacks.indent.Scope.Config: snacks.scope.Config
|
||||
scope = {
|
||||
enabled = true, -- enable highlighting the current scope
|
||||
-- animate scopes. Enabled by default for Neovim >= 0.10
|
||||
-- Works on older versions but has to trigger redraws during animation.
|
||||
---@type snacks.animate.Config|{enabled?: boolean}
|
||||
|
@ -45,6 +42,9 @@ local defaults = {
|
|||
total = 500, -- maximum duration
|
||||
},
|
||||
},
|
||||
---@class snacks.indent.Scope.Config: snacks.scope.Config
|
||||
scope = {
|
||||
enabled = true, -- enable highlighting the current scope
|
||||
char = "│",
|
||||
underline = false, -- underline the start of the scope
|
||||
only_current = false, -- only show scope in the current window
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue