Skip to content

Commit

Permalink
Update hop.nvim conf to support Chinese
Browse files Browse the repository at this point in the history
  • Loading branch information
jdhao committed Jun 25, 2024
1 parent 3694d3c commit 2af616b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lua/config/nvim_hop.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ hop.setup {
case_insensitive = true,
char2_fallback_key = "<CR>",
quit_key = "<Esc>",
match_mappings = { "zh_sc" }
}

keymap.set({ "n", "v", "o" }, "f", "", {
Expand All @@ -17,7 +18,7 @@ keymap.set({ "n", "v", "o" }, "f", "", {

vim.api.nvim_create_autocmd("ColorScheme", {
pattern = "*",
callback = function ()
callback = function()
vim.cmd([[
hi HopNextKey cterm=bold ctermfg=176 gui=bold guibg=#ff00ff guifg=#ffffff
hi HopNextKey1 cterm=bold ctermfg=176 gui=bold guibg=#ff00ff guifg=#ffffff
Expand Down

0 comments on commit 2af616b

Please sign in to comment.