remove precognition and screenkey
This commit is contained in:
parent
af8acafeee
commit
3c8c644ffd
6 changed files with 0 additions and 121 deletions
|
|
@ -10,8 +10,6 @@
|
|||
# https://github.com/AstroNvim/AstroNvim/blob/v4.7.7/lua/astronvim/plugins/configs/heirline.lua
|
||||
config = ''
|
||||
local status = require("astroui.status")
|
||||
local screenkey = require("screenkey")
|
||||
vim.g.screenkey_statusline_component = true
|
||||
|
||||
require("heirline").setup({
|
||||
opts = {
|
||||
|
|
@ -34,20 +32,6 @@
|
|||
status.component.lsp(),
|
||||
status.component.virtual_env(),
|
||||
status.component.treesitter(),
|
||||
{
|
||||
provider = function()
|
||||
local keys = screenkey.get_keys()
|
||||
if keys == nil or keys == "" then
|
||||
return
|
||||
end
|
||||
return " " .. keys
|
||||
end,
|
||||
update = {
|
||||
"User",
|
||||
pattern = "Screenkey*",
|
||||
callback = vim.schedule_wrap(function() vim.cmd("redrawstatus") end),
|
||||
},
|
||||
},
|
||||
status.component.nav(),
|
||||
status.component.mode { surround = { separator = "right" } },
|
||||
},
|
||||
|
|
|
|||
|
|
@ -1,30 +0,0 @@
|
|||
# homepage: https://github.com/tris203/precognition.nvim
|
||||
{ lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
extra = {
|
||||
packages = [
|
||||
(import ./package { inherit lib pkgs; })
|
||||
];
|
||||
|
||||
config = ''
|
||||
require("precognition").setup({
|
||||
showBlankVirtLine = false,
|
||||
})
|
||||
'';
|
||||
};
|
||||
|
||||
rootOpts.keymaps = [
|
||||
{
|
||||
mode = "n";
|
||||
key = "<leader>uP";
|
||||
action.__raw = ''
|
||||
function()
|
||||
local visible = require("precognition").toggle()
|
||||
vim.notify(("precognition %s"):format(visible and "on" or "off"))
|
||||
end
|
||||
'';
|
||||
options.desc = "Toggle precognition";
|
||||
}
|
||||
];
|
||||
}
|
||||
|
|
@ -1,21 +0,0 @@
|
|||
{ pkgs, ... }:
|
||||
|
||||
let
|
||||
version = "1.0.0";
|
||||
in
|
||||
pkgs.vimUtils.buildVimPlugin {
|
||||
inherit version;
|
||||
|
||||
name = "precognition";
|
||||
|
||||
src = pkgs.fetchFromGitHub {
|
||||
owner = "tris203";
|
||||
repo = "precognition.nvim";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-AqWYV/59ugKyOWALOCdycWVm0bZ7qb981xnuw/mAVzM=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
./init.lua.patch
|
||||
];
|
||||
}
|
||||
|
|
@ -1,12 +0,0 @@
|
|||
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
|
||||
|
|
@ -1,25 +0,0 @@
|
|||
# homepage: https://github.com/NStefan002/screenkey.nvim
|
||||
{ lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
extra = {
|
||||
packages = [
|
||||
(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";
|
||||
}
|
||||
];
|
||||
}
|
||||
|
|
@ -1,17 +0,0 @@
|
|||
{ pkgs, ... }:
|
||||
|
||||
let
|
||||
version = "2.1.0";
|
||||
in
|
||||
pkgs.vimUtils.buildVimPlugin {
|
||||
inherit version;
|
||||
|
||||
name = "screenkey.nvim";
|
||||
|
||||
src = pkgs.fetchFromGitHub {
|
||||
owner = "NStefan002";
|
||||
repo = "screenkey.nvim";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-kdZ5GMFyKbzHEn/Bm4r76vauPillvbKJX7yI8MJxGEo=";
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue