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

Keymaps conflicts #90

Open
feranpre opened this issue Jul 21, 2023 · 4 comments
Open

Keymaps conflicts #90

feranpre opened this issue Jul 21, 2023 · 4 comments

Comments

@feranpre
Copy link

Hi, this is a very VERY interesting plugin. I work with R but I'm thinking about moving to pandas, and at the same time I want to get rid of Rstudio and stay with nvim.

The problem is that the keymaps cannot be disabled, as far as I can see, and you have binded to execute line and it's driving me crazy

Is there a way to remove the binds and use my own? I can bind more keys to execute cells and so on, but I can't remove the binds all together.

Thx for the work

@alhazacod
Copy link

Same problem here, i use nvchad and i can't use nvimtree because the enter key is al ready mapped for nvim-jukit and it just try to execute the line.

@thadryanjs
Copy link

Same problem here, i use nvchad and i can't use nvimtree because the enter key is al ready mapped for nvim-jukit and it just try to execute the line.

This happened to me with Neotree as well. I worked around it by adding vim.g.jukit_mappings = 0 to my global.lua file in my config (more in the readme). It disables all the mappings though, so you have to create the ones you want afterwards.

I think remapping enter might be a little overzealous but I'm very excited to see where this project goes overall.

@luk400
Copy link
Owner

luk400 commented Sep 17, 2023

You should be able to just remap it using e.g.

nnoremap <YOURKEYBINDING> :call jukit#send#line()<cr>

in your vim config (or the equivalent command in your lua config), does that not work?
Otherwise you can disable ALL default keybindings by setting the g:jukit_mappings variable to 0, as @thadryanjs has mentioned.

@thadryanjs
Copy link

You should be able to just remap it using e.g.

nnoremap <YOURKEYBINDING> :call jukit#send#line()<cr>

in your vim config (or the equivalent command in your lua config), does that not work? Otherwise you can disable ALL default keybindings by setting the g:jukit_mappings variable to 0, as @thadryanjs has mentioned.

This works for me. Thank you!

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

4 participants