mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-26 10:48:35 +02:00
modules/keymap: improve lua
deprecation
- Replace nullable lua option with a no-default option. - Made it so the deprecated option is only declared when `lua = true` is passed. - Replace `normalizeMappings` with a `removeDeprecatedMapAttrs` helper. - Added warnings for all options that historically had `lua` support.
This commit is contained in:
parent
c52ba67856
commit
7fb1f9dd9d
6 changed files with 115 additions and 104 deletions
|
@ -47,7 +47,8 @@ in
|
|||
};
|
||||
|
||||
extra = mkOption {
|
||||
type = with types; listOf helpers.keymaps.mapOptionSubmodule;
|
||||
type = with types; listOf helpers.keymaps.deprecatedMapOptionSubmodule;
|
||||
apply = map helpers.keymaps.removeDeprecatedMapAttrs;
|
||||
description = ''
|
||||
Extra keymaps to register when an LSP is attached.
|
||||
This can be used to customise LSP behaviour, for example with "telescope" or the "Lspsaga" plugin, as seen in the examples.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue