Skip to content

Commit 5eaa3ee

Browse files
committed
docs: add yank in README
1 parent 47646be commit 5eaa3ee

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

README.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ require('tiny-glimmer').setup({
7171
-- Disable this if you wants to debug highlighting issues
7272
disable_warnings = true,
7373

74-
default_animation = "fade",
7574
refresh_interval_ms = 6,
7675

7776
overwrite = {
@@ -116,6 +115,10 @@ require('tiny-glimmer').setup({
116115
-- Keys to navigate to the previous match
117116
prev_mapping = "Nzzzv",
118117
},
118+
yank = {
119+
enabled = true,
120+
default_animation = "fade",
121+
},
119122
paste = {
120123
enabled = false,
121124
default_animation = "reverse_fade",
@@ -236,7 +239,7 @@ require('tiny-glimmer').setup({
236239
intensity = 1.2,
237240
},
238241

239-
-- You can add as many animations as you want
242+
-- You can add as many animations as you want
240243
custom = {
241244
-- You can also add as many custom options as you want
242245
-- Only `max_duration` and `chars_for_max_duration` is required
@@ -256,6 +259,10 @@ require('tiny-glimmer').setup({
256259
return self.settings.color, progress
257260
end,
258261
},
262+
hijack_ft_disabled = {
263+
"alpha",
264+
"snacks_dashboard",
265+
},
259266
},
260267
virt_text = {
261268
priority = 2048,

test.lua

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,6 @@ function test()
141141

142142
for i, line in ipairs(buf_content) do
143143
if #line > 0 then
144-
local range = {
145144
start_line = i - 1,
146145
start_col = 0,
147146
end_line = i - 1,
@@ -169,7 +168,6 @@ function test()
169168
base = {
170169
range = range,
171170
},
172-
content = { line },
173171
})
174172
end
175173
end

0 commit comments

Comments
 (0)