feat(plugins/screenkey): add keymap to toggle screenkey
This commit is contained in:
parent
a36c9106f9
commit
4371dfbdc0
1 changed files with 15 additions and 0 deletions
|
|
@ -7,4 +7,19 @@
|
||||||
(import ./package.nix { inherit lib pkgs; })
|
(import ./package.nix { inherit lib pkgs; })
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
rootOpts.keymaps = [
|
||||||
|
{
|
||||||
|
mode = "n";
|
||||||
|
key = "<leader>uk";
|
||||||
|
action.__raw = ''
|
||||||
|
function()
|
||||||
|
vim.g.screenkey_statusline_component = not vim.g.screenkey_statusline_component
|
||||||
|
vim.api.nvim_exec_autocmds("User", { pattern = "ScreenkeyToggled" })
|
||||||
|
vim.notify(("screenkey %s"):format(vim.g.screenkey_statusline_component and "on" or "off"))
|
||||||
|
end
|
||||||
|
'';
|
||||||
|
options.desc = "Toggle screenkey";
|
||||||
|
}
|
||||||
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue