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";
|
||||
option = "filetype=markdown";
|
||||
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 = [
|
||||
|
|
@ -85,6 +95,7 @@
|
|||
"";
|
||||
};
|
||||
|
||||
home.packages = with pkgs; [ kak-lsp ];
|
||||
xdg.configFile."kak-lsp/kak-lsp.toml".source =
|
||||
./kakoune/kak-lsp.toml;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue