diff --git a/README.md b/README.md index 04bb9277..381fc15b 100644 --- a/README.md +++ b/README.md @@ -149,6 +149,13 @@ vim.keymap.set( -- or vim.lsp.buf.codeAction() if you don't want grouping. end, { silent = true, buffer = bufnr } +vim.keymap.set( + "n", + "K", -- Override Neovim's built-in hover keymap with rustaceanvim's hover actions + function() + vim.cmd.RustLsp({'hover', 'action'}) + end, + { silent = true, buffer = bufnr } ) ```