feat(plugins/precognition): patch toggle to return state
This commit is contained in:
parent
03dca50006
commit
dd3db0f108
3 changed files with 17 additions and 1 deletions
|
|
@ -4,7 +4,7 @@
|
||||||
{
|
{
|
||||||
extra = {
|
extra = {
|
||||||
packages = [
|
packages = [
|
||||||
(import ./package.nix { inherit lib pkgs; })
|
(import ./package { inherit lib pkgs; })
|
||||||
];
|
];
|
||||||
|
|
||||||
config = ''
|
config = ''
|
||||||
|
|
|
||||||
|
|
@ -14,4 +14,8 @@ pkgs.vimUtils.buildVimPlugin {
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
hash = "sha256-AqWYV/59ugKyOWALOCdycWVm0bZ7qb981xnuw/mAVzM=";
|
hash = "sha256-AqWYV/59ugKyOWALOCdycWVm0bZ7qb981xnuw/mAVzM=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
patches = [
|
||||||
|
./init.lua.patch
|
||||||
|
];
|
||||||
}
|
}
|
||||||
12
plugins/precognition/package/init.lua.patch
Normal file
12
plugins/precognition/package/init.lua.patch
Normal file
|
|
@ -0,0 +1,12 @@
|
||||||
|
diff --git a/lua/precognition/init.lua b/lua/precognition/init.lua
|
||||||
|
index b0b9d49..b057a15 100644
|
||||||
|
--- a/lua/precognition/init.lua
|
||||||
|
+++ b/lua/precognition/init.lua
|
||||||
|
@@ -413,6 +413,7 @@ function M.toggle()
|
||||||
|
else
|
||||||
|
M.show()
|
||||||
|
end
|
||||||
|
+ return visible
|
||||||
|
end
|
||||||
|
|
||||||
|
---@param opts Precognition.PartialConfig
|
||||||
Loading…
Add table
Add a link
Reference in a new issue