oopsie forgot to actually add kakoune.nix to the repo

This commit is contained in:
vorboyvo 2024-03-12 14:37:43 -04:00
parent 2ef8a5bd7d
commit 711f9ccd8f

22
programs/kakoune.nix Normal file
View file

@ -0,0 +1,22 @@
{
enable = true;
config = {
numberLines = {
enable = true;
highlightCursor = true;
};
hooks = [
{
name = "BufSetOption";
option = "filetype=latex";
commands = ''
set-option buffer makecmd latexmk -pvc -pdf -e '$pdf_previewer="xdg-open %S"' -e '$pdflatex="pdflatex -interaction=nonstopmode -synctex=1 %O %S"' %opt{documentsrc}
'';
}
];
};
extraConfig = ''
eval %sh{kak-lsp --kakoune -s $kak_session}
lsp-enable
'';
}