Skip to content

A Neovim plugin for copying current file path.

License

Notifications You must be signed in to change notification settings

ohakutsu/socks-copypath.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

socks-copypath.nvim

A Neovim plugin for copying current file path.

Installation

With lazy.nvim

  {
    "ohakutsu/socks-copypath.nvim",
    config = function()
      require("socks-copypath").setup()
    end,
  },

With packer.nvim

use({
  "ohakutsu/socks-copypath.nvim",
  config = function()
    require('socks-copypath').setup()
  end
})

Setup

First, you need to call setup() function.

require("ohakutsu/socks-copypath.nvim").setup()

Configuration

Following are the default configuration.

{
  register = "+", -- Name of the register to set file path
}

Usage

When you call the setup() function, the following commands are defined.

  • CopyPath
    • Copy full path of current file
  • CopyRelativePath
    • Copy relative path of current file
  • CopyFileName
    • Copy name of current file without extension

License

MIT License