Skip to content

How to create a shortkey #677

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

Closed
A-caibird opened this issue Mar 27, 2025 · 1 comment
Closed

How to create a shortkey #677

A-caibird opened this issue Mar 27, 2025 · 1 comment

Comments

@A-caibird
Copy link

how to call format api by a shortkey?

@stevearc
Copy link
Owner

The same way you set any keymap in neovim. See :help vim.keymap.set

There is an example in the recipes https://github.com/stevearc/conform.nvim/blob/master/doc/recipes.md#leave-visual-mode-after-range-format

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