Skip to content

Allow customization of the extended map key prefix.#17

Merged
rishi-opensource merged 2 commits intorishi-opensource:mainfrom
phallstrom:map-extended-prefix
Mar 10, 2026
Merged

Allow customization of the extended map key prefix.#17
rishi-opensource merged 2 commits intorishi-opensource:mainfrom
phallstrom:map-extended-prefix

Conversation

@phallstrom
Copy link
Copy Markdown
Contributor

This addresses issue #15..

  • It adds a default variable of map_extended_prefix set to <Leader>c.

  • It then changes the mappings to use this instead of the hardcoded value.

  • With this, one can now override the prefix and use something else like so:

    let g:claude_code_map_extended_prefix = '<Leader>C'

This addresses issue rishi-opensource#15.

- It adds a default variable of `map_extended_prefix` set to
  `<Leader>c`.

- It then changes the mappings to use this instead of the hardcoded
  value.

- With this, one can now override the prefix and use something else like
  so:

  `let g:claude_code_map_extended_prefix = '<Leader>C'`
@rishi-opensource rishi-opensource self-requested a review March 10, 2026 15:13
@rishi-opensource rishi-opensource self-assigned this Mar 10, 2026
Copy link
Copy Markdown
Owner

@rishi-opensource rishi-opensource left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this PR! I've tested it locally and it works perfectly—it's exactly what was needed for Issue #15.

Note: I noticed two tiny artifacts in

plugin/claude_code.vim
(stray quotes on lines 154 and 155). I'll go ahead and clean those up on my side and update the README to reflect these new configuration options.

Great work—I'm merging this now!

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.

2 participants