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

This plugin does not play nicely with vim mode or neovim plugin #35

Open
danielo515 opened this issue Feb 14, 2024 · 2 comments
Open

This plugin does not play nicely with vim mode or neovim plugin #35

danielo515 opened this issue Feb 14, 2024 · 2 comments

Comments

@danielo515
Copy link

Type: Bug

Hello, in vim and neovim $ means go to the end of the line when you are not in edit mothe. However, this plugin is using that specific key-bind and it is just inserting the character which, until I discovered it, it was very annoying. Can you give me a worakround so this only happens in insert mode?

Thanks.

Extension version: 0.12.2
VS Code version: Code 1.86.1 (31c37ee8f63491495ac49e43b8544550fbae4533, 2024-02-07T09:08:57.920Z)
OS version: Darwin arm64 22.5.0
Modes:

System Info
Item Value
CPUs Apple M2 Pro (10 x 24)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
webgpu: enabled
Load (avg) 6, 6, 8
Memory (System) 32.00GB (0.75GB free)
Process Argv --crash-reporter-id 638386ec-d304-4548-864d-0259289f2c78
Screen Reader no
VM 0%
A/B Experiments
vsliv368:30146709
vspor879:30202332
vspor708:30202333
vspor363:30204092
vstes627:30244334
vscorecescf:30445987
vscod805cf:30301675
binariesv615:30325510
vsaa593:30376534
py29gd2263:30899288
c4g48928:30535728
azure-dev_surveyone:30548225
2i9eh265:30646982
962ge761:30959799
pythongtdpath:30769146
welcomedialogc:30910334
pythonidxpt:30866567
pythonnoceb:30805159
asynctok:30898717
pythontestfixt:30902429
pythonregdiag2:30936856
pyreplss1:30897532
pythonmypyd1:30879173
pythoncet0:30885854
pythontbext0:30879054
accentitlementst:30887150
dsvsc016:30899300
dsvsc017:30899301
dsvsc018:30899302
edj9j583:30958191
e3gdj431:30958358

@danielo515
Copy link
Author

Maybe a duplicate of #10

@aliariff
Copy link
Owner

Hi @danielo515

Can you try to add below snippet in your local keybindings.json (here is how https://code.visualstudio.com/docs/getstarted/keybindings#_advanced-customization)

{
    "command": "auto.addInterpolation",
    "key": "shift+4",
    "when": "neovim.mode == insert && editorTextFocus"
}

OR

{
    "command": "auto.addInterpolation",
    "key": "shift+4",
    "when": "vim.mode == 'Insert' && editorTextFocus"
}

Let me know the result.

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

No branches or pull requests

2 participants