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

Override key mappings #14

Open
practicalli-johnny opened this issue Sep 27, 2024 · 0 comments
Open

Override key mappings #14

practicalli-johnny opened this issue Sep 27, 2024 · 0 comments

Comments

@practicalli-johnny
Copy link
Contributor

practicalli-johnny commented Sep 27, 2024

Gitsigns example
https://discord.com/channels/939594913560031363/1283637981827170409/1283851488799756321

General discussion
https://discord.com/channels/939594913560031363/1282855848586248293/1282855848586248293

use mappings and not keys section to define keymappings

use desc rather than name

usee group for sub-menu titles (check this is correct)

remove a mapping

You'd want unmap S and then keep your lower case s map

vim.keymap.del("n", "<Leader>S")  -- Removes normal mode mapping for Leader+S

If using the AstroNvim template you could also do it in the astrocore.lua file around here: https://github.com/AstroNvim/template/blob/20450d8a65a74be39d2c92bc8689b1acccf2cffe/lua/plugins/astrocore.lua#L47

Out of date content
https://docs.astronvim.com/recipes/mappings/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

1 participant