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

fix(dial): Fix dial.nvim commands in visual line/block #2933

Merged
merged 1 commit into from
May 14, 2024

Conversation

grddavies
Copy link
Contributor

In the dial.nvim extra config, keymaps use the dial normal mode commands in visual line and visual block mode.

This limits the cases where the dial.nvim keymaps can be used. Eg visual-block selecting and incrementing all object keys to fix this example:

const digitToStr = {
  //   < v-block  ctrl-a >
  one: "0",
  two: "1",
  three: "2",
  // ...
};

This PR fixes the mode argument passed to the dial.manipulate function when using <C-a>, <C-x>, g<C-a> and g<C-x> when in VISUAL-LINE and VISUAL-BLOCK modes.

@folke folke merged commit 1df3c5d into LazyVim:main May 14, 2024
@folke
Copy link
Collaborator

folke commented May 14, 2024

Thanks!

@grddavies grddavies deleted the fix-dial-visual-line-block branch May 16, 2024 09:37
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.

None yet

3 participants