added kakoune

This commit is contained in:
vorboyvo 2024-03-07 00:43:07 -05:00
parent 80a61d8f99
commit 34f4ec9415

View file

@ -38,10 +38,11 @@ in
[ bitwarden-cli ] ++ # Personalized selection of command-line (CLI/TUI) apps
[ terminal ] ++ # Terminal emulator
[ firefox cinnamon.nemo gnome.file-roller cinnamon.nemo-fileroller imv vlc pavucontrol ] ++ # Basic graphical apps
[ libreoffice signal-desktop element-desktop prismlauncher mumble gimp inkscape ] ++ # Personalized selection of graphical apps
[ libreoffice signal-desktop element-desktop prismlauncher mumble gimp inkscape deluge-gtk ] ++ # Personalized selection of graphical apps
[ (callPackage ./pkgs/mons/mons.nix {}) ] ++ # Games
[ swaybg bemenu j4-dmenu-desktop fcitx5-with-addons ] ++ # Sway- and Wayland-related packages
[ noto-fonts redhat-official-fonts overpass ibm-plex font-awesome ] ++ # Fonts
[ kak-lsp ] ++
# [ papirus-icon-theme ] ++ # Icons
# [ vanilla-dmz ] ++ # Cursor
[ ] ++ # Temp
@ -101,6 +102,30 @@ in
programs.alacritty.enable = true;
programs.neovim = import ./programs/neovim.nix;
# trying out kakoune
programs.kakoune = {
enable = true;
config = {
numberLines = {
enable = true;
highlightCursor = true;
};
hooks = [
{
name = "BufSetOption";
option = "filetype=latex";
commands = ''
set-option buffer makecmd latexmk -pvc -pdf -e '$pdf_previewer="xdg-open %S"' -e '$pdflatex="pdflatex -interaction=nonstopmode -synctex=1 %O %S"' %opt{documentsrc}
'';
}
];
};
extraConfig = ''
eval %sh{kak-lsp --kakoune -s $kak_session}
lsp-enable
'';
};
programs.zathura = {
enable = true;