source "%val{config}/plugins/plug.kak/rc/plug.kak" plug "andreyorst/plug.kak" noload plug "andreyorst/fzf.kak" colorscheme gruvbox set-option global tabstop 4 set-option global indentwidth 0 add-highlighter global/ column 80 default,rgb:404040 add-highlighter global/ column 120 default,rgb:404040 add-highlighter global/ number-lines -min-digits 3 map global normal ': fzf-mode ' map global normal ': comment-line ' map global user y ' xclip -i -selection clipboard ' -docstring 'yank to system clipboard' map global user f '| par -w80 ' -docstring 'reformat selection with external tool' map global user l %{: enter-user-mode lsp } -docstring 'LSP mode' eval %sh{kak-lsp --kakoune -s $kak_session} hook global BufCreate .*\.tex %{ set-option buffer filetype latex } hook global WinSetOption filetype=(latex) %{ lsp-enable-window # map window user o %{: nop %sh{ setsid zathura %val{buffile} } } # hook window BufWritePost .* %{ %sh{ pdflatex %val{buffile} } } } hook global WinSetOption filetype=(c|cpp) %{ lsp-enable-window }