Skip to content

Latest commit

 

History

History
38 lines (33 loc) · 986 Bytes

README.md

File metadata and controls

38 lines (33 loc) · 986 Bytes

fileline.nvim

Lua plugin to have better support around opening and copying filenames with line and column numbers. The opening functionality is heavily inspired by bogodo/file-line and its fork lervag/file-line. Therefore, it is likely to suffer from similar issues to them.

Installation

{
  "triarius/fileline.nvim",
  opts = {},
}

The value of the opts will be merged with the default. The schema is below.

Options

Default options

{
  copy = {
    destination_register = "+",
  },
}

Usage

Open from command line

You can open a file at a line and column using colons:

nvim file:l:c

Copy file name with line and column

You can copy the filename to clipboard with the Fileline command.

Copy github permalink with line and column

You can a github permalink to clipboard with the GHPerma command.