Skip to content

Commit

Permalink
fix(config): register and nohlsearch are disables by default
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Jun 20, 2023
1 parent f7352f7 commit f20d2f8
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lua/flash/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@ local defaults = {
-- labels = "abcdefghijklmnopqrstuvwxyz",
labels = "asdfghjklqwertyuiopzxcvbnm",
jump = {
-- save location in the jumplist
jumplist = true,
-- jump position
pos = "start", ---@type "start" | "end" | "range"
-- add pattern to search history
history = false,
-- add pattern to search register
-- useful to use with `n` and `N` to repeat the jump
register = false,
-- clear highlight after jump
nohlsearch = true,
-- save location in the jumplist
jumplist = true,
pos = "start", -- "start" | "end" | "range"
nohlsearch = false,
},
search = {
-- search/jump in all windows
Expand Down Expand Up @@ -76,7 +76,7 @@ local defaults = {
search = {
enabled = true, -- enable flash for search
highlight = { backdrop = false },
jump = { history = true },
jump = { history = true, register = true, nohlsearch = true },
search = {
-- `forward` will be automatically set to the search direction
-- `mode` is always set to `search`
Expand Down

0 comments on commit f20d2f8

Please sign in to comment.