Skip to content

Simple neovim plugin for Go developers to move from file to test file and back

License

Notifications You must be signed in to change notification settings

tscolari/goalt.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

goalt.nvim

This is a very basic neovim plugin for Go developers. It adds the :GoAlt command, which allows you to switch from file (something.go) to test file (something_test.go), and back.

After years using vim-go, and slowly replacing it, this was the last bit I was missing. (if you are using vim-go there's no need for this plugin!)

Installation

Use your favorite plugin manager.

... all you plugin management things
{
    'tscolari/goalt.nvim',
}
...

Usage

  1. :GoAlt from file.go will open file_test.go
  2. :GoAlt from file_test.go will open file.go

I recommend binding this to a shortcut, I use

vim.keymap.set('n', '<leader>.', ':GoAlt<cr>')

About

Simple neovim plugin for Go developers to move from file to test file and back

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages