Zathura config + remove old packages

This commit is contained in:
Filippo Berto 2021-07-02 12:29:14 +02:00
parent 247185eafe
commit 632185d7f8
10 changed files with 68 additions and 37 deletions

View file

@ -12,6 +12,9 @@ let
cppPlugins = with pkgs; [
clang-tools
];
latexPlugins = with pkgs; [
texlab
];
pythonPlugins = with pkgs.python38Packages; [
pyls-black
python-language-server
@ -78,6 +81,7 @@ in
{ mode = "user"; docstring = "Show hover info"; key = "q"; effect = ":lsp-hover<ret>"; }
{ mode = "user"; docstring = "Spellcheck English"; key = "S"; effect = ":spell en<ret>"; }
{ mode = "user"; docstring = "Spellcheck"; key = "s"; effect = ":spell "; }
{ mode = "normal"; docstring = "Try next snippet placeholder"; key = "<c-n>"; effect = "<a-;>: insert-c-n<ret>"; }
];
hooks = [
{ name = "BufCreate"; option = ".*"; commands = "editorconfig-load"; }
@ -91,6 +95,19 @@ in
"define-command -docstring 'save and quit' x 'write-all; quit' # Save and quit with 'x'"
"add-highlighter global/ regex \\h+$ 0:Error # Highlight trailing spaces"
"eval %sh{kak-lsp --kakoune -s \$kak_session} # Start kak-lsp"
# Kak-lsp snippet support
''
def -hidden insert-c-n %{
try %{
lsp-snippets-select-next-placeholders
exec '<a-;>d'
} catch %{
exec -with-hooks '<c-n>'
}
}
''
"require-module prelude"
"# require-module auto-pairs"
"require-module connect"
@ -113,7 +130,7 @@ in
with nixpkgs; [
kakounePlugins.connect-kak
]
) ++ rustPlugins ++ cppPlugins ++ pythonPlugins ++ nixPlugins ++ spellingPlugins ++ dataFormats;
) ++ rustPlugins ++ cppPlugins ++ pythonPlugins ++ latexPlugins ++ nixPlugins ++ spellingPlugins ++ dataFormats;
};
xdg.configFile."kak/colors/nord.kak".source = ../configs/kak/colors/nord.kak;
xdg.configFile."kak-lsp/kak-lsp.toml".source = ../configs/kak-lsp/kak-lsp.toml;