go.nvim icon indicating copy to clipboard operation
go.nvim copied to clipboard

I want to be able to set camelCase on by default.

Open alikazai opened this issue 1 year ago • 3 comments

For the modify tags i would like to change it to use the camcelCase by default. i know we can use the command GoAddTag json -transform camelcase

however it would be better to be able to set it by default for my setup.

maybe provide a way to change configs for the pages. not sure where to start for this so i can help.

btw in gopher we can do the following



require("gopher").setup{
    gotag = {
        transform = "camelcase"
    }
}

would be cool to be able to configure the used packages directly

alikazai avatar Aug 15 '24 02:08 alikazai

Could you try e.g. in setup

  tag_transform =  'camelcase' , -- set to e.g. 'snakecase' to transform to snake_case

This is default to false

ray-x avatar Nov 12 '24 01:11 ray-x

will give that a go and let you know if it works, thanks

alikazai avatar Nov 12 '24 04:11 alikazai

Could you try e.g. in setup

  tag_transform =  'camelcase' , -- set to e.g. 'snakecase' to transform to snake_case

This is default to false

This worked, thanks.

kyoryo avatar Dec 12 '24 06:12 kyoryo