m4xshen / hardtime.nvim

Establish good command workflow and quit bad habit
MIT License
1.38k stars 26 forks source link

fix: Change mode from visual and select to only visual #9

Closed Weiberle17 closed 1 year ago

Weiberle17 commented 1 year ago

This prevents interference with snippets. Context: Currently if you wanted to use a snippet for example expand fn into:

fn name(args) {
  body;
}

and you want to call the function "kelvin" it wouldn't work. Pressing "k" would expand the selected area to the line above and not type the letter k. Setting the mode to "x" instead of "v" ensures that snippets work, but the functionality still exists for visual mode which I think was the intended setting.

I know this is just the config and can be adjusted by everyone themselves but I think this would be a better default setting.

m4xshen commented 1 year ago

I didn't notice this interference. Thanks for the PR!