Compare commits

..

1 commit

Author SHA1 Message Date
Ching Pei Yang
b2293fba07
Merge 8718d9c59a into 6670d752c7 2024-10-01 23:45:52 +00:00

View file

@ -28,10 +28,10 @@ configuration formats.
### `vim.maps` rewrite {#sec-vim-maps-rewrite} ### `vim.maps` rewrite {#sec-vim-maps-rewrite}
Instead of specifying map modes using submodules (eg.: `vim.maps.normal`), a new `vim.keymaps` Instead of specifying map modes using submodules (eg.: `vim.maps.normal`), a new
submodule with support for a `mode` option has been introduced. It can be either a string, or a `mode` option has mode has been introduced. It can be either a string, or a list
list of strings, where a string represents the short-name of the map mode(s), that the mapping of strings, where a string represents the short-name of the map mode(s), that
should be set for. See `:help map-modes` for more information. the mapping should be set for. See `:help map-modes` for more information.
For example: For example:
@ -42,13 +42,10 @@ vim.maps.normal."<leader>m" = { ... };
has to be replaced by has to be replaced by
```nix ```nix
vim.keymaps = [ vim.maps."<leader>m" = {
{
key = "<leader>m";
mode = "n"; mode = "n";
}
... ...
]; };
``` ```
### `vim.lsp.nvimCodeActionMenu` removed in favor of `vim.ui.fastaction` {#sec-nvim-code-action-menu-deprecation} ### `vim.lsp.nvimCodeActionMenu` removed in favor of `vim.ui.fastaction` {#sec-nvim-code-action-menu-deprecation}