Made a bunch of Kakoune changes including installing plugins.

This commit is contained in:
vorboyvo 2024-11-01 12:05:48 -04:00
parent ddbb30350a
commit 82350b9149

View file

@ -1,15 +1,23 @@
{ pkgs, ... }: { { pkgs, ... }: {
enable = true; enable = true;
defaultEditor = true; defaultEditor = true;
# plugins = with pkgs; [ kakounePlugins.kak-fzf ]; plugins = with pkgs.kakounePlugins;
[ kak-fzf byline-kak kakboard auto-pairs-kak ];
config = { config = {
colorScheme = "tomorrow-night"; colorScheme = "tomorrow-night";
numberLines = { numberLines = {
enable = true; enable = true;
highlightCursor = true; highlightCursor = true;
}; };
showMatching = true;
tabStop = 2;
indentWidth = 2; indentWidth = 2;
hooks = [ hooks = [
{
name = "WinCreate";
commands = "kakboard-enable";
option = ".*";
}
{ {
# When the filetype=latex option is set in a buffer context (automatically), add a new hook to build the latex file on write # When the filetype=latex option is set in a buffer context (automatically), add a new hook to build the latex file on write
name = "BufSetOption"; name = "BufSetOption";
@ -22,6 +30,15 @@
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 .* %{ %sh{
#
# } };
# '';
# }
]; ];
keyMappings = [ keyMappings = [
# Define select all # Define select all
@ -59,6 +76,9 @@
set-option global divider_face LineNumbers set-option global divider_face LineNumbers
divider-on 80 divider-on 80
# byline enables extending selection with x
require-module byline
eval %sh{kak-lsp --kakoune -s $kak_session} eval %sh{kak-lsp --kakoune -s $kak_session}
lsp-enable lsp-enable
''; '';