Skip to content

Commit

Permalink
doc: fix instructions for OSCYank integration
Browse files Browse the repository at this point in the history
  • Loading branch information
j-hui committed Nov 29, 2023
1 parent cc59f73 commit 1d7e1ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ You can define your own action callback.

For example, to copy the url over a remote SSH session with an
[OSC52][osc52]-compatible terminal, you can integrate gitlinker with
[ojroques/vim-oscyank][oscyank] and use its `OSCYankString` function:
[ojroques/vim-oscyank][oscyank] and use its `OSCYank` function:

```lua
require'gitlinker'.setup{
Expand All @@ -254,7 +254,7 @@ require'gitlinker'.setup{
-- yank to unnamed register
vim.api.nvim_command('let @" = \'' .. url .. '\'')
-- copy to the system clipboard using OSC52
vim.fn.OSCYankString(url)
vim.fn.OSCYank(url)
end,
},
}
Expand Down

0 comments on commit 1d7e1ee

Please sign in to comment.