Add kakoune-buffers

This commit is contained in:
Natsu Kagami 2023-01-26 10:59:28 +01:00
parent 2d81531c46
commit b55a93aa0c
Signed by: nki
GPG key ID: 7306B3D3C3AD6E51
3 changed files with 34 additions and 7 deletions

View file

@ -197,16 +197,15 @@
"kakoune": {
"flake": false,
"locked": {
"lastModified": 1670235597,
"narHash": "sha256-4LO/SbhrtcUajHsDrG38ntq2GxY+JRwc4Bl1qgL/Fzo=",
"owner": "natsukagami",
"lastModified": 1674455980,
"narHash": "sha256-y4r+UPLGzOu9rocZfFjoYR+r9I0BD04cuH758hv8hzo=",
"owner": "mawww",
"repo": "kakoune",
"rev": "39c875856a8dcfc2dcb0d796df05474e0eb30a3f",
"rev": "509788460889ed934e4a51d03243aedf776e8b96",
"type": "github"
},
"original": {
"owner": "natsukagami",
"ref": "revert-latex-changes",
"owner": "mawww",
"repo": "kakoune",
"type": "github"
}

View file

@ -27,7 +27,7 @@
nix-gaming.url = github:fufexan/nix-gaming;
# --- Sources
kakoune.url = github:natsukagami/kakoune/revert-latex-changes;
kakoune.url = github:mawww/kakoune;
kakoune.flake = false;
kak-lsp.url = github:kak-lsp/kak-lsp;
kak-lsp.flake = false;

View file

@ -236,6 +236,34 @@ in
map global insert <c-s> '<a-;>: insert-unicode '
'';
}
{
name = "kakoune-buffers";
src = pkgs.fetchFromGitHub {
owner = "Delapouite";
repo = "kakoune-buffers";
rev = "6b2081f5b7d58c72de319a5cba7bf628b6802881";
sha256 = "sha256-jOSrzGcLJjLK1GiTSsl2jLmQMPbPxjycR0pwF5t/eV0=";
};
activationScript = ''
# Suggested hook
hook global WinDisplay .* info-buffers
# Suggested mappings
map global user b ':enter-buffers-mode<ret>' -docstring 'buffers'
map global normal ^ ':enter-buffers-mode<ret>' -docstring 'buffers'
map global user B ':enter-user-mode -lock buffers<ret>' -docstring 'buffers (lock)'
# Suggested aliases
alias global bd delete-buffer
alias global bf buffer-first
alias global bl buffer-last
alias global bo buffer-only
alias global bo! buffer-only-force
'';
}
];
}