Skip to content

A Neovim plugin that inserts a shebang line when editing a new file.

Notifications You must be signed in to change notification settings

samirettali/shebang.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

shebang.nvim

A simple Neovim plugin written in Lua that automatically inserts a shebang line when editing a new file.

Installation

Plug 'samirettali/shebang.nvim'

Customization

You can set custom shells by setting the global variables shebang_shells and shebang_commands:

vimscript

let g:shebang_commands = { 'py': '/usr/bin/python3.9' }
let g:shebang_shells = { 'py': 'python3.9' }

lua

vim.g.shebang_commands = {
    py = '/usr/bin/python3.9'
}
vim.g.shebang_shells = {
    py = 'python3.9'
}

The difference between the two is that the executables in shebang_shells have must be in the PATH environment variable, while the in shebang_commands you can use full paths to the executable.

About

A Neovim plugin that inserts a shebang line when editing a new file.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published