Skip to content

bkiahstroud/xeref.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

xeref.nvim

A Neovim plugin for copying the reference to a method that the cursor is within.

xeref_demo.mov

Supported Languages

Note

If you would like xeref.nvim to support a language not in this list, please open a ticket or submit a PR.

  • Ruby

Dependencies

Installation

Using Lazy.nvim

return {
  "bkiahstroud/xeref.nvim",
}

Usage

xeref.nvim has no default keymaps. Its functionality is exposed via the plugin's API or the Xeref command. Users may use either of these when defining their own keymap, for example:

vim.keymap.set("n", "<leader>yr", function()
  require("xeref").copy_method_ref()
end)
-- or
vim.keymap.set("n", "<leader>yr", "<cmd>Xeref<cr>")

Why "xeref"?

Portmanteau of "Xerox" and "reference".

About

A Neovim plugin for copying the reference to a method that the cursor is within

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Languages