oopsie forgot to actually add kakoune.nix to the repo
This commit is contained in:
parent
2ef8a5bd7d
commit
711f9ccd8f
22
programs/kakoune.nix
Normal file
22
programs/kakoune.nix
Normal 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
|
||||
'';
|
||||
}
|
||||
Loading…
Reference in a new issue