Skip to content

Adds a commented directory header to all your files after save.

License

Notifications You must be signed in to change notification settings

JxJxxJxJ/DirHead.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

DirHead.nvim

DirHead.nvim is a plugin for Neovim that adds the current directory path as a header to your files when you save them. This is useful for when sharing files with others so they know the where the file came from.

Features

  • Adds a header with the current directory path to your files when you save them.
  • Works with Neovim filetypes.

Installation

To install DirHead.nvim using Packer, add the following line to your plugin configuration file:

use { 'JxJxxJxJ/DirHead.nvim', config = function() require('dirhead').setup() end }

Then, run :PackerInstall in your Neovim configuration file or reload Neovim.

Usage

DirHead.nvim will automatically add a header to your files when you save them. The header will include the path of the current file. Here's an example of what a file might look like before and after using DirHead:

Before:

This is my file.

It contains some text.

And more text.

After:

-- ~/Documents/myfile.lua

This is my file.

It contains some text.

And more text.

About

Adds a commented directory header to all your files after save.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages