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

default key mapping has conflicts with NERDCommenter #18

Closed
changyiyao opened this issue Sep 4, 2021 · 5 comments
Closed

default key mapping has conflicts with NERDCommenter #18

changyiyao opened this issue Sep 4, 2021 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@changyiyao
Copy link

https://github.com/preservim/nerdcommenter also map cs that already been used for a long time.

Request for customizing the key binding or change the default key binding for switching color schemes.

Thanks.

@navarasu
Copy link
Owner

navarasu commented Sep 4, 2021

Yes. I will update that.

@navarasu navarasu self-assigned this Sep 4, 2021
@navarasu navarasu added the bug Something isn't working label Sep 4, 2021
@xeluxee
Copy link
Contributor

xeluxee commented Sep 6, 2021

vim.g.onedark_disable_toggle_style = 1
vim.api.nvim_set_keymap('n', '<leader>cs', "<cmd>lua require('onedark').toggle()<cr>", { noremap = true, silent = true })

Change <leader>cs to the keymap you prefer

@changyiyao
Copy link
Author

vim.g.onedark_disable_toggle_style = true

vim.api.nvim_set_keymap('n', '<leader>cs', "<cmd>lua require('onedark').toggle()<cr>", { noremap = true, silent = true })

Change <leader>cs to the keymap you prefer

Cool, but can it be done in VimScript?

@xeluxee
Copy link
Contributor

xeluxee commented Sep 7, 2021

let g:onedark_disable_toggle_style = 1
nnoremap <silent> <leader>cs <cmd>lua require('onedark').toggle()<cr>

@xeluxee
Copy link
Contributor

xeluxee commented Oct 14, 2021

@changyiyao now onedark_disable_toggle_style is deprecated
Use this insetad:

let g:onedark_toggle_style_keymap = 'gC'    " put your keymap here

I think this issue can be closed now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants