mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2024-11-07 12:45:57 +01:00
fastaction-nvim: move range_code_action to visual maps
This commit is contained in:
parent
97dabab4d9
commit
3935189b79
1 changed files with 8 additions and 6 deletions
|
@ -3,10 +3,10 @@
|
||||||
lib,
|
lib,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
inherit (lib.modules) mkIf mkMerge;
|
inherit (lib.modules) mkIf;
|
||||||
inherit (lib.nvim.dag) entryAnywhere;
|
inherit (lib.nvim.dag) entryAnywhere;
|
||||||
inherit (lib.nvim.lua) toLuaObject;
|
inherit (lib.nvim.lua) toLuaObject;
|
||||||
inherit (lib.nvim.binds) addDescriptionsToMappings mkSetLuaBinding;
|
inherit (lib.nvim.binds) addDescriptionsToMappings mkSetLuaBinding pushDownDefault;
|
||||||
|
|
||||||
cfg = config.vim.lsp.code-actions;
|
cfg = config.vim.lsp.code-actions;
|
||||||
self = import ./fastaction-nvim.nix {inherit lib;};
|
self = import ./fastaction-nvim.nix {inherit lib;};
|
||||||
|
@ -18,11 +18,13 @@ in {
|
||||||
vim = {
|
vim = {
|
||||||
startPlugins = ["fastaction-nvim"];
|
startPlugins = ["fastaction-nvim"];
|
||||||
|
|
||||||
|
binds.whichKey.register = pushDownDefault {
|
||||||
|
"<leader>c" = "Code Actions";
|
||||||
|
};
|
||||||
|
|
||||||
maps = {
|
maps = {
|
||||||
normal = mkMerge [
|
normal = mkSetLuaBinding mappings.code_action "require('fastaction').code_action";
|
||||||
(mkSetLuaBinding mappings.code_action "require('fastaction').code_action")
|
visual = mkSetLuaBinding mappings.range_action "require('fastaction').range_code_action";
|
||||||
(mkSetLuaBinding mappings.range_action "require('fastaction').range_code_action")
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
|
|
||||||
pluginRC.fastaction-nvim = entryAnywhere ''
|
pluginRC.fastaction-nvim = entryAnywhere ''
|
||||||
|
|
Loading…
Reference in a new issue