Skip to content

Commit

Permalink
fix: typos (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikita0x authored Sep 19, 2024
1 parent f4119f4 commit bbc5632
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ A plugin that makes Neovim more friendly to non-English input methods 🤝

- [TLDR](#tldr)
- [Requirements](#requirements)
- [Instalation](#instalation)
- [Installation](#instalation)
- [Settings](#settings)
- [Usage](#usage)
- [Simple](#simple)
- [Manualy](#manualy)
- [Manually](#manualy)
- [Using with `folke/which-key.nvim`](#using-with-folkewhich-keynvim)
- [API](#api)
- [Utils](#utils)
Expand All @@ -24,7 +24,7 @@ A plugin that makes Neovim more friendly to non-English input methods 🤝

- Translating all globally registered mappings;
- Translating local registered mappings for each buffer;
- Registering translated mappings for all built-in CTRL+ sequence;
- Registering translated mappings for all built-in CTRL+ sequences;
- Provides utils for manual registration original and translated mapping with single function;
- Hacks built-in keymap's methods to translate all registered mappings (including mappings from lazy-loaded plugins);
- Real-time normal mode command processing variability depending on the input method.
Expand All @@ -42,7 +42,7 @@ A plugin that makes Neovim more friendly to non-English input methods 🤝
> - [im-select](https://github.com/daipeihust/im-select) for Mac and Windows
> - [xkb-switch](https://github.com/grwlf/xkb-switch) for Linux
## Instalation
## Installation

With [Lazy.nvim](https://github.com/folke/lazy.nvim):

Expand Down Expand Up @@ -182,15 +182,15 @@ If you need to handle built-in and vim script mappings too, call the
`langmapper.automapping({ buffer = false })` function at the very end of
your `init.lua`. (buffer to `false`, because `nvim_buf_set_keymap` already hacked 😎)

### Manualy
### Manually

Set up your `layout` in config, set `hack_keymap` to false,
and call `langmapper.setup(opts)`.

#### For regular mapping:

```lua
-- this function complitely repeat contract of vim.keymap.set
-- this function completely repeats contract of vim.keymap.set
local map = require('langmapper').map

map('n', '<Leader>e', '<Cmd>Neotree toggle focus<Cr>')
Expand Down Expand Up @@ -299,7 +299,7 @@ outputting `nvim_buf_get_keymap` for each open buffer.
Must be called at the very end of `init.lua`, after all plugins have been loaded
and all key bindings have been set.

This function also handles mappings made via wim script.
This function also handles mappings made via vim script.

Does not handle mappings for lazy-loaded plugins. To avoid it, see
`hack_keymap`.
Expand Down Expand Up @@ -367,7 +367,7 @@ langmapper.hack_get_keymap()

### Other

Original keymap's functions, that were wrap with translates functions if
Original keymap's functions, that were wrapped with translation functions if
`hack_keymap` is `true`:

```lua
Expand Down

0 comments on commit bbc5632

Please sign in to comment.