We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 66c926b commit c4572cbCopy full SHA for c4572cb
lua/tiny-glimmer/overwrite/search.lua
@@ -1,5 +1,7 @@
1
local M = {}
2
3
+local animation_group = require("tiny-glimmer.namespace").animation_group
4
+
5
local function search(opts, search_pattern)
6
local buf = vim.api.nvim_get_current_buf()
7
@@ -28,13 +30,13 @@ local function search(opts, search_pattern)
28
30
end)
29
31
end
32
-function M.setup()
33
+function M.setup(opts)
34
vim.api.nvim_create_autocmd("CmdlineLeave", {
35
group = animation_group,
36
callback = function()
37
local cmd_type = vim.fn.getcmdtype()
38
if cmd_type == "/" or cmd_type == "?" then
- M.search_on_line(M.config.overwrite.search)
39
+ M.search_on_line(opts)
40
41
end,
42
})
0 commit comments