Skip to content

A Neovim plugin for modifying Go struct tags using gomodifytags.

Notifications You must be signed in to change notification settings

devkvlt/go-tags.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

Go Tags

A Neovim plugin for modifying Go struct tags using gomodifytags.

Supports modified buffers.

Screenshot

Requirements

  • nvim-treesitter
  • gomodifytags: install with go install github.com/fatih/gomodifytags@latest

Install

For example, with packer.nvim:

use({
  'devkvlt/go-tags.nvim',
  requires = { 'nvim-treesitter/nvim-treesitter' },
})

Setup

require('go-tags').setup({
  commands = {
    ['GoTagsAddJSON'] = { '-add-tags', 'json' },
    ['GoTagsRemoveJSON'] = { '-remove-tags', 'json' },
  },
})

This sets up the Vim commands to call gomodifytags with the given flags. You can be creative and add any flags that make sense.

About

A Neovim plugin for modifying Go struct tags using gomodifytags.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages