Add kakoune-buffers
This commit is contained in:
parent
2d81531c46
commit
b55a93aa0c
11
flake.lock
11
flake.lock
|
@ -197,16 +197,15 @@
|
||||||
"kakoune": {
|
"kakoune": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1670235597,
|
"lastModified": 1674455980,
|
||||||
"narHash": "sha256-4LO/SbhrtcUajHsDrG38ntq2GxY+JRwc4Bl1qgL/Fzo=",
|
"narHash": "sha256-y4r+UPLGzOu9rocZfFjoYR+r9I0BD04cuH758hv8hzo=",
|
||||||
"owner": "natsukagami",
|
"owner": "mawww",
|
||||||
"repo": "kakoune",
|
"repo": "kakoune",
|
||||||
"rev": "39c875856a8dcfc2dcb0d796df05474e0eb30a3f",
|
"rev": "509788460889ed934e4a51d03243aedf776e8b96",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "natsukagami",
|
"owner": "mawww",
|
||||||
"ref": "revert-latex-changes",
|
|
||||||
"repo": "kakoune",
|
"repo": "kakoune",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
nix-gaming.url = github:fufexan/nix-gaming;
|
nix-gaming.url = github:fufexan/nix-gaming;
|
||||||
|
|
||||||
# --- Sources
|
# --- Sources
|
||||||
kakoune.url = github:natsukagami/kakoune/revert-latex-changes;
|
kakoune.url = github:mawww/kakoune;
|
||||||
kakoune.flake = false;
|
kakoune.flake = false;
|
||||||
kak-lsp.url = github:kak-lsp/kak-lsp;
|
kak-lsp.url = github:kak-lsp/kak-lsp;
|
||||||
kak-lsp.flake = false;
|
kak-lsp.flake = false;
|
||||||
|
|
|
@ -236,6 +236,34 @@ in
|
||||||
map global insert <c-s> '<a-;>: insert-unicode '
|
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
|
||||||
|
'';
|
||||||
|
}
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue