mirror of
https://github.com/Dichgrem/DCGOS.git
synced 2025-12-17 03:31:59 -05:00
feat:add_nixvim
This commit is contained in:
29
home/nixvim/plugins/ui/precognition.nix
Normal file
29
home/nixvim/plugins/ui/precognition.nix
Normal file
@@ -0,0 +1,29 @@
|
||||
{
|
||||
plugins.precognition = {
|
||||
enable = true;
|
||||
settings = {
|
||||
startVisible = false;
|
||||
};
|
||||
};
|
||||
|
||||
keymaps = [
|
||||
{
|
||||
mode = "n";
|
||||
key = "<leader>up";
|
||||
action.__raw = ''
|
||||
function()
|
||||
if require("precognition").toggle() then
|
||||
vim.notify("Precognition on")
|
||||
else
|
||||
vim.notify("Precognition off")
|
||||
end
|
||||
end
|
||||
'';
|
||||
|
||||
options = {
|
||||
desc = "Precognition Toggle";
|
||||
silent = true;
|
||||
};
|
||||
}
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user