Files
hop.nvim/lua/hop/defaults.lua
Henry Hsieh 6ff23501a1 feat: make hl_mode of hints configurable (#72)
* feat: add hl_mode to change highlight of hint char

* chore: fix typo in docs

---------

Co-authored-by: mohsen <smoka7@hotmail.com>
2024-04-25 20:42:09 +03:30

36 lines
948 B
Lua

---@class Options
---@field direction HintDirection
---@field loaded_mappings any
local M = {}
local hint = require('hop.hint')
M.keys = 'asdghklqwertyuiopzxcvbnmfj'
M.quit_key = '<Esc>'
M.perm_method = require('hop.perm').TrieBacktrackFilling
M.reverse_distribution = false
M.x_bias = 10
M.distance_method = hint.manh_distance
M.teasing = true
M.virtual_cursor = false
M.jump_on_sole_occurrence = true
M.case_insensitive = true
M.create_hl_autocmd = true
M.current_line_only = false
M.dim_unmatched = true
M.hl_mode = "combine"
M.uppercase_labels = false
M.multi_windows = false
M.windows_list = function ()
return vim.api.nvim_tabpage_list_wins(0)
end
M.ignore_injections = false
M.hint_position = hint.HintPosition.BEGIN ---@type HintPosition
M.hint_offset = 0 ---@type WindowCell
M.hint_type = hint.HintType.OVERLAY ---@type HintType
M.excluded_filetypes = {}
M.match_mappings = {}
M.extensions = { 'hop-yank', 'hop-treesitter' }
return M