ohakutsu / socks-copypath.nvim

A Neovim plugin for copying current file path.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

A Neovim plugin for copying current file path.

License:MIT License


Languages

Language:Lua 100.0%