Fix texlab forward search

This commit is contained in:
Natsu Kagami 2024-06-23 17:40:07 +02:00
parent ea7e32973a
commit c59b47c1ce
Signed by: nki
GPG key ID: 55A032EB38B49ADB
3 changed files with 5 additions and 15 deletions

View file

@ -1,22 +1,12 @@
{ config, pkgs, lib, ... }:
let
kaktexScript = ./kaktex;
in
{
# Create kak-tex executable
home.file.kaktex = {
source = kaktexScript;
executable = true;
target = ".bin/kaktex";
};
# Source kaktex whenever we have a tex file
programs.my-kakoune.rc = ''
hook global WinSetOption filetype=(tex|latex) %{
hook window WinDisplay '.*' %{
eval %sh{
${kaktexScript} set $kak_client $kak_session
${./kaktex} set $kak_client $kak_session
}
}
}