mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-09 16:54:36 +02:00
Fix typos in plugins.treesitter-refactor.navigation.keymaps
(#1031)
This commit is contained in:
parent
f755eeb961
commit
7edffe3896
1 changed files with 15 additions and 4 deletions
|
@ -72,12 +72,12 @@ with lib; {
|
|||
mapping fo `lua require'nvim-treesitter.refactor.navigation(nil, fallback_function)<cr>`.
|
||||
'';
|
||||
};
|
||||
listDefinitons = mkOption {
|
||||
listDefinitions = mkOption {
|
||||
type = types.nullOr types.str;
|
||||
default = "gnD";
|
||||
description = "list all definitions from the current file";
|
||||
};
|
||||
listDefinitonsToc = mkOption {
|
||||
listDefinitionsToc = mkOption {
|
||||
type = types.nullOr types.str;
|
||||
default = "gO";
|
||||
description = ''
|
||||
|
@ -99,6 +99,17 @@ with lib; {
|
|||
};
|
||||
};
|
||||
|
||||
imports = [
|
||||
# Added 2024-02-07
|
||||
(mkRenamedOptionModule
|
||||
["plugins" "treesitter-refactor" "navigation" "keymaps" "listDefinitons"]
|
||||
["plugins" "treesitter-refactor" "navigation" "keymaps" "listDefinitions"])
|
||||
# Added 2024-02-07
|
||||
(mkRenamedOptionModule
|
||||
["plugins" "treesitter-refactor" "navigation" "keymaps" "listDefinitonsToc"]
|
||||
["plugins" "treesitter-refactor" "navigation" "keymaps" "listDefinitionsToc"])
|
||||
];
|
||||
|
||||
config = let
|
||||
cfg = config.plugins.treesitter-refactor;
|
||||
in
|
||||
|
@ -126,8 +137,8 @@ with lib; {
|
|||
in {
|
||||
goto_definition = cfgK.gotoDefinition;
|
||||
goto_definition_lsp_fallback = cfgK.gotoDefinitionLspFallback;
|
||||
list_definitions = cfgK.listDefinitons;
|
||||
list_definitions_toc = cfgK.listDefinitonsToc;
|
||||
list_definitions = cfgK.listDefinitions;
|
||||
list_definitions_toc = cfgK.listDefinitionsToc;
|
||||
goto_next_usage = cfgK.gotoNextUsage;
|
||||
goto_previous_usage = cfgK.gotoPreviousUsage;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue