2024-06-14 21:56:11 +02:00
|
|
|
# homepage: https://github.com/tris203/precognition.nvim
|
|
|
|
|
{ lib, pkgs, ... }:
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
extra = {
|
|
|
|
|
packages = [
|
2024-06-16 15:02:42 +02:00
|
|
|
(import ./package { inherit lib pkgs; })
|
2024-06-14 21:56:11 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
|
|
config = ''
|
|
|
|
|
require("precognition").setup({
|
|
|
|
|
showBlankVirtLine = false,
|
|
|
|
|
})
|
|
|
|
|
'';
|
|
|
|
|
};
|
2024-06-16 14:18:20 +02:00
|
|
|
|
|
|
|
|
rootOpts.keymaps = [
|
|
|
|
|
{
|
|
|
|
|
mode = "n";
|
|
|
|
|
key = "<leader>uc";
|
2024-06-16 15:05:43 +02:00
|
|
|
action.__raw = ''
|
|
|
|
|
function()
|
|
|
|
|
local visible = require("precognition").toggle()
|
|
|
|
|
vim.notify(("precognition %s"):format(visible and "on" or "off"))
|
|
|
|
|
end
|
|
|
|
|
'';
|
2024-06-16 14:18:20 +02:00
|
|
|
options.desc = "Toggle precognition";
|
|
|
|
|
}
|
|
|
|
|
];
|
2024-06-14 21:56:11 +02:00
|
|
|
}
|