Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

config: change default g:go_gorename_prefill value #3510

Closed
wants to merge 1 commit into from

Conversation

bhcleek
Copy link
Collaborator

@bhcleek bhcleek commented Feb 10, 2023

Change the default value of g:go_gorename_prefill so that the default value will be the other of camelCase or PascalCase than what the word under the cursor is.

Perhaps this shouldn't be merged. The original rationale for preserving the case where the current behavior was introduced is worth considering. #3509 is an argument in favor of changing which casing is used by default.

With this change, it's relatively simple to use the (go-rename) map to change an identifier from exported to unexported and vice versa (e.g. map <leader>r <Plug>(go-rename))

Change the default value of g:go_gorename_prefill so that the default
value will be the other of camelCase or PascalCase than what the word
under the cursor is.
@bhcleek bhcleek added this to the vim-go v1.29 milestone Feb 10, 2023
@bhcleek bhcleek closed this Feb 10, 2023
@bhcleek bhcleek deleted the rename/prefill branch February 10, 2023 01:00
@bhcleek
Copy link
Collaborator Author

bhcleek commented Feb 10, 2023

Closed, because users can configure g:go_gorename_prefill to accomplish what this does for easy use with a mapping.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant