Moved kak-lsp to snippets/kakoune.nix.
Added autocompile for md and Rmd.
This commit is contained in:
parent
863dd4fd4c
commit
dfa137c5d4
|
|
@ -41,6 +41,16 @@
|
||||||
name = "WinSetOption";
|
name = "WinSetOption";
|
||||||
option = "filetype=markdown";
|
option = "filetype=markdown";
|
||||||
commands = "set-option window lintcmd \"proselint\"";
|
commands = "set-option window lintcmd \"proselint\"";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "BufSetOption";
|
||||||
|
option = "filetype=markdown";
|
||||||
|
commands = "hook buffer BufWritePost .* %{ nop %sh{ pandoc -o \"\${kak_buffile%.md}.pdf\" \"$kak_buffile\" } }";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "BufCreate";
|
||||||
|
option = ".*\.Rmd";
|
||||||
|
commands = "hook buffer BufWritePost .* %{ nop %sh{ Rscript -e \"rmarkdown::render(\\\"$kak_buffile\\\", 'pdf_document')\" } }";
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
keyMappings = [
|
keyMappings = [
|
||||||
|
|
@ -85,6 +95,7 @@
|
||||||
"";
|
"";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
home.packages = with pkgs; [ kak-lsp ];
|
||||||
xdg.configFile."kak-lsp/kak-lsp.toml".source =
|
xdg.configFile."kak-lsp/kak-lsp.toml".source =
|
||||||
./kakoune/kak-lsp.toml;
|
./kakoune/kak-lsp.toml;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue