feat: add nvimdots
This commit is contained in:
37
nvim/lua/modules/configs/editor/flash.lua
Normal file
37
nvim/lua/modules/configs/editor/flash.lua
Normal file
@@ -0,0 +1,37 @@
|
||||
return function()
|
||||
vim.api.nvim_set_hl(
|
||||
0,
|
||||
"FlashLabel",
|
||||
{ underline = true, bold = true, fg = "Orange", bg = "NONE", ctermfg = "Red", ctermbg = "NONE" }
|
||||
)
|
||||
|
||||
require("modules.utils").load_plugin("flash", {
|
||||
labels = "asdfghjklqwertyuiopzxcvbnm",
|
||||
label = {
|
||||
-- allow uppercase labels
|
||||
uppercase = true,
|
||||
-- add a label for the first match in the current window.
|
||||
-- you can always jump to the first match with `<CR>`
|
||||
current = true,
|
||||
-- for the current window, label targets closer to the cursor first
|
||||
distance = true,
|
||||
},
|
||||
modes = {
|
||||
search = { enabled = false },
|
||||
-- options used when flash is activated through
|
||||
-- `f`, `F`, `t`, `T`, `;` and `,` motions
|
||||
char = {
|
||||
enabled = true,
|
||||
-- hide after jump when not using jump labels
|
||||
autohide = false,
|
||||
-- show jump labels
|
||||
jump_labels = false,
|
||||
-- set to `false` to use the current line only
|
||||
multi_line = true,
|
||||
-- When using jump labels, don't use these keys
|
||||
-- This allows using those keys directly after the motion
|
||||
label = { exclude = "hjkliardc" },
|
||||
},
|
||||
},
|
||||
})
|
||||
end
|
||||
Reference in New Issue
Block a user