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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding remappings #572

Open
arejula27 opened this issue May 5, 2024 · 1 comment
Open

Adding remappings #572

arejula27 opened this issue May 5, 2024 · 1 comment
Labels
documentation Improvements or additions to documentation

Comments

@arejula27
Copy link

馃摎 The doc issue

There is not enough info about remmapings. I would like to remap some commands as quick switch but after trying for a while i didn't succeed on it.

Suggest a potential alternative/fix

Add examples of how to add commands as keymappings

@arejula27 arejula27 added the documentation Improvements or additions to documentation label May 5, 2024
@huantrinh1802
Copy link

I think the document is sufficient enough. There are no default mappings for the commands as far I know. Thus, you can use this

vim.api.nvim_set_keymap("n", "<leader>os", ':ObsidianQuickSwitch<CR>', { silent = true, noremap = true, description ="[O]bsidian Quick[S]witch" })

or

vim.keymap.set("n", "<leader>os", ':ObsidianQuickSwitch<CR>', { silent = true, noremap = true, description ="[O]bsidian Quick[S]witch" })

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants