feat(plugins/precognition): notify state on toggle
This commit is contained in:
parent
dd3db0f108
commit
b969c36b17
1 changed files with 6 additions and 1 deletions
|
|
@ -18,7 +18,12 @@
|
||||||
{
|
{
|
||||||
mode = "n";
|
mode = "n";
|
||||||
key = "<leader>uc";
|
key = "<leader>uc";
|
||||||
action = "<cmd>Precognition toggle<cr>";
|
action.__raw = ''
|
||||||
|
function()
|
||||||
|
local visible = require("precognition").toggle()
|
||||||
|
vim.notify(("precognition %s"):format(visible and "on" or "off"))
|
||||||
|
end
|
||||||
|
'';
|
||||||
options.desc = "Toggle precognition";
|
options.desc = "Toggle precognition";
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue