Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Kat Inskip <[email protected]>
  • Loading branch information
ehllie and kittywitch committed Sep 8, 2022
1 parent ef02973 commit a7845bf
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,20 +147,20 @@ If you want to create a key binding from within Lua:

```lua
-- place this in one of your configuration file(s)
local hop = require("hop")
local directions = require("hop.hint").HintDirection
vim.api.nvim_set_keymap("", "f", function()
local hop = require('hop')
local directions = require('hop.hint').HintDirection
vim.keymap.set('', 'f', function()
hop.hint_char1({ direction = directions.AFTER_CURSOR, current_line_only = true })
end, {})
vim.api.nvim_set_keymap("", "F", function()
end, {remap=true})
vim.keymap.set('', 'F', function()
hop.hint_char1({ direction = directions.BEFORE_CURSOR, current_line_only = true })
end, {})
vim.api.nvim_set_keymap("", "t", function()
end, {remap=true})
vim.keymap.set('', 't', function()
hop.hint_char1({ direction = directions.AFTER_CURSOR, current_line_only = true, hint_offset = -1 })
end, {})
vim.api.nvim_set_keymap("", "T", function()
end, {remap=true})
vim.keymap.set('', 'T', function()
hop.hint_char1({ direction = directions.BEFORE_CURSOR, current_line_only = true, hint_offset = 1 })
end, {})
end, {remap=true})
```

# Chat
Expand Down

0 comments on commit a7845bf

Please sign in to comment.