dotfiles.git

commit 6503e32224757a5c52e234202890437e9686c7a0

Author: Adam Evyčędo <git@apiote.xyz>

remove kak

 .config/kak-lsp/kak-lsp.toml | 69 --------
 .config/kak/autoload/autoload | 1 
 .config/kak/autoload/syntax/dirty.kak | 95 -----------
 .config/kak/autoload/syntax/kotlin.kak | 112 -------------
 .config/kak/autoload/syntax/lilypond.kak | 66 -------
 .config/kak/kakrc | 215 -------------------------


diff --git a/.config/kak/autoload/autoload b/.config/kak/autoload/autoload
deleted file mode 120000
index a406aeabd031fa17b9380c640d9bf333b5bb41e0..0000000000000000000000000000000000000000
--- a/.config/kak/autoload/autoload
+++ /dev/null
@@ -1 +0,0 @@
-/usr/share/kak/autoload/
\ No newline at end of file




diff --git a/.config/kak/autoload/syntax/dirty.kak b/.config/kak/autoload/syntax/dirty.kak
deleted file mode 100644
index 93cc9b688376ea1ed38d5156982b84423d7da74f..0000000000000000000000000000000000000000
--- a/.config/kak/autoload/syntax/dirty.kak
+++ /dev/null
@@ -1,95 +0,0 @@
-# Detection
-# ‾‾‾‾‾‾‾‾‾
-
-hook global BufCreate .*\.(drt|dirty) %{
-    set-option buffer filetype dirty
-}
-
-# Highlighters
-# ‾‾‾‾‾‾‾‾‾‾‾‾
-
-add-highlighter shared/dirty regions
-add-highlighter shared/dirty/code default-region group
-add-highlighter shared/dirty/string region "'" (?<!\\)(\\\\)*' group
-add-highlighter shared/dirty/raw_string region "`\n" ^` fill string
-add-highlighter shared/dirty/comment_line region '#' $ fill comment
-
-add-highlighter shared/dirty/string/fill fill string
-add-highlighter shared/dirty/string/escape group
-add-highlighter shared/dirty/string/escape/backslash regex %{\\\\} 0:variable
-add-highlighter shared/dirty/string/escape/apostrophe regex %{\\'} 0:variable
-add-highlighter shared/dirty/string/escape/error regex %{(?<!\\)\\(?!['\\])} 0:Error
-
-# integer literals
-# todo dozenal, scientific, unary minus, imaginary
-add-highlighter shared/dirty/code/ regex %{(?i)(?<!\.)\b[0-9](_?\d+)*L?\b(?!\.)} 0:value
-add-highlighter shared/dirty/code/ regex %{(?i)(?<!\.)\b0b[01](_?[01]+)*\b(?!\.)} 0:value
-add-highlighter shared/dirty/code/ regex %{(?i)(?<!\.)\b0o[0-7](_?[0-7]+)*\b(?!\.)} 0:value
-add-highlighter shared/dirty/code/ regex %{(?i)(?<!\.)\b0x[\da-f](_?[\da-f]+)*\b(?!\.)} 0:value
-
-# floating point literals
-# todo dozenal
-add-highlighter shared/dirty/code/ regex %{(?i)(?<!\.)(\b(\d(_?\d+)*)|\B)\.\d(_?[\d]+)*(e[+-]?\d(_?\d+)*)?[f]?\b(?!\.)} 0:value
-
-evaluate-commands %sh{
-    values="false null true"
-    
-    join() { sep=$2; eval set -- $1; IFS="$sep"; echo "$*"; }
-
-    # Add the language's grammar to the static completion list
-    printf %s\\n "hook global WinSetOption filetype=dirty %{
-        set-option window static_words $(join "${values}" ' ')
-    }"
-
-    # Highlight keywords
-    printf %s "
-        add-highlighter shared/dirty/code/values regex \b($(join "${values}" '|'))\b 0:value
-    "
-}
-
-define-command -hidden dirty-indent-on-new-line %~
-    evaluate-commands -draft -itersel %=
-        # preserve previous line indent
-        try %{ execute-keys -draft \;K<a-&> }
-        # indent after lines ending with { or (
-        try %[ execute-keys -draft k<a-x> <a-k> [{(]\h*$ <ret> j<a-gt> ]
-        # cleanup trailing white spaces on the previous line
-        try %{ execute-keys -draft k<a-x> s \h+$ <ret>d }
-        # align to opening paren of previous line
-        try %{ execute-keys -draft [( <a-k> \A\([^\n]+\n[^\n]*\n?\z <ret> s \A\(\h*.|.\z <ret> '<a-;>' & }
-        # copy // comments prefix
-        try %{ execute-keys -draft k <a-x> s ^\h*//\h* <ret> y jgh P }
-    =
-~
-
-define-command -hidden dirty-indent-on-opening-curly-brace %[
-    #todo brackets
-    # align indent with opening paren when { is entered on a new line after the closing paren
-    try %[ execute-keys -draft -itersel h<a-F>)M <a-k> \A\(.*\)\h*\n\h*\(\z <ret> s \A|.\z <ret> 1<a-&> ]
-]
-
-define-command -hidden dirty-indent-on-closing-curly-brace %[
-    #todo brackets
-    # align to opening curly brace when alone on a line
-    try %[ execute-keys -itersel -draft <a-h><a-k>^\h+\)$<ret>hms\A|.\z<ret>1<a-&> ]
-]
-
-# Initialization
-# ‾‾‾‾‾‾‾‾‾‾‾‾‾‾
-
-hook -group dirty-highlight global WinSetOption filetype=dirty %{ add-highlighter window/dirty ref dirty }
-
-hook global WinSetOption filetype=dirty %{
-    # cleanup trailing whitespaces when exiting insert mode
-    hook window ModeChange insert:.* -group dirty-hooks %{ try %{ execute-keys -draft <a-x>s^\h+$<ret>d } }
-    hook window InsertChar \n -group dirty-indent dirty-indent-on-new-line
-    hook window InsertChar \( -group dirty-indent dirty-indent-on-opening-curly-brace
-    hook window InsertChar \) -group dirty-indent dirty-indent-on-closing-curly-brace
-}
-
-hook -group dirty-highlight global WinSetOption filetype=(?!dirty).* %{ remove-highlighter window/dirty }
-
-hook global WinSetOption filetype=(?!dirty).* %{
-    remove-hooks window dirty-hooks
-    remove-hooks window dirty-indent
-}




diff --git a/.config/kak/autoload/syntax/kotlin.kak b/.config/kak/autoload/syntax/kotlin.kak
deleted file mode 100644
index 1dc3b45a501d9c5f6a6f89a5816c7d1c836bd875..0000000000000000000000000000000000000000
--- a/.config/kak/autoload/syntax/kotlin.kak
+++ /dev/null
@@ -1,112 +0,0 @@
-# Detection
-# ‾‾‾‾‾‾‾‾‾
-
-hook global BufCreate .*\.kt(s?) %{
-    set-option buffer filetype kotlin
-}
-
-# Highlighters
-# ‾‾‾‾‾‾‾‾‾‾‾‾
-
-add-highlighter shared/kotlin regions
-add-highlighter shared/kotlin/code default-region group
-add-highlighter shared/kotlin/raw_string region '"""' '"""' fill string
-add-highlighter shared/kotlin/double_string region '"' (?<!\\)(\\\\)*" group
-add-highlighter shared/kotlin/comment region '/\*' '\*/' fill comment
-add-highlighter shared/kotlin/comment_line region '//' $ fill comment
-
-add-highlighter shared/kotlin/double_string/fill fill string
-add-highlighter shared/kotlin/double_string/expansion regex \$(\w+|\{.+?\}) 0:variable
-
-# integer literals
-add-highlighter shared/kotlin/code/ regex %{(?i)(?<!\.)\b[0-9](_?\d+)*L?\b(?!\.)} 0:value
-add-highlighter shared/kotlin/code/ regex %{(?i)(?<!\.)\b0b[01](_?[01]+)*\b(?!\.)} 0:value
-add-highlighter shared/kotlin/code/ regex %{(?i)(?<!\.)\b0x[\da-f](_?[\da-f]+)*\b(?!\.)} 0:value
-
-# floating point literals
-add-highlighter shared/kotlin/code/ regex %{(?i)(?<!\.)(\b(\d(_?\d+)*)|\B)\.\d(_?[\d]+)*(e[+-]?\d(_?\d+)*)?[f]?\b(?!\.)} 0:value
-
-# character literals (no multi-character literals)
-add-highlighter shared/kotlin/code/char regex %{'((\\.)|[^'\\])'\B} 0:value
-
-add-highlighter shared/kotlin/code/ regex (?<=[\w\s])(\+|-|\*|/|%|={1,3}|[\+\-\*/%]=|!|!={1,2}|[<>]=)(?=[\w\s]) 0:operator
-add-highlighter shared/kotlin/code/ regex (?<=\s)_(?=\s) 0:operator
-add-highlighter shared/kotlin/code/ regex (\+\+|--|&&|\|\||!!|\[|\]|\?\.|\?:|:{1,2}|\.\.|\?|->|\;|<|>) 0:operator
-
-add-highlighter shared/kotlin/code/ regex \$[_a-zA-Z][_0-9a-zA-Z]* 0:variable
-
-evaluate-commands %sh{
-    # Grammar
-    keywords="as break continue do else for fun if in is return throw try when
-              while by catch finally get import init set where it field until"
-
-    attributes="class interface object package typealias val var constructor
-                abstract annotation companion const crossline data enum
-                external final infix inline inner internal lateinit noinline
-                open operator out override private protected public reified
-                sealed suspend tailrec ararg"
-
-    types="Double Float Long Int Short Byte Char Boolean String"
-
-    values="false null super this true"
-    
-    join() { sep=$2; eval set -- $1; IFS="$sep"; echo "$*"; }
-
-    # Add the language's grammar to the static completion list
-    printf %s\\n "hook global WinSetOption filetype=kotlin %{
-        set-option window static_words $(join "${keywords} ${attributes} ${types} ${values}" ' ')
-    }"
-
-    # Highlight keywords
-    printf %s "
-        add-highlighter shared/kotlin/code/keywords regex \b($(join "${keywords}" '|'))\b 0:keyword
-        add-highlighter shared/kotlin/code/attributes regex \b($(join "${attributes}" '|'))\b 0:attribute
-        add-highlighter shared/kotlin/code/types regex \b($(join "${types}" '|'))\b 0:type
-        add-highlighter shared/kotlin/code/values regex \b($(join "${values}" '|'))\b 0:value
-    "
-}
-
-define-command -hidden kotlin-indent-on-new-line %~
-    evaluate-commands -draft -itersel %=
-        # preserve previous line indent
-        try %{ execute-keys -draft \;K<a-&> }
-        # indent after lines ending with { or (
-        try %[ execute-keys -draft k<a-x> <a-k> [{(]\h*$ <ret> j<a-gt> ]
-        # cleanup trailing white spaces on the previous line
-        try %{ execute-keys -draft k<a-x> s \h+$ <ret>d }
-        # align to opening paren of previous line
-        try %{ execute-keys -draft [( <a-k> \A\([^\n]+\n[^\n]*\n?\z <ret> s \A\(\h*.|.\z <ret> '<a-;>' & }
-        # copy // comments prefix
-        try %{ execute-keys -draft k <a-x> s ^\h*//\h* <ret> y jgh P }
-    =
-~
-
-define-command -hidden kotlin-indent-on-opening-curly-brace %[
-    # align indent with opening paren when { is entered on a new line after the closing paren
-    try %[ execute-keys -draft -itersel h<a-F>)M <a-k> \A\(.*\)\h*\n\h*\{\z <ret> s \A|.\z <ret> 1<a-&> ]
-]
-
-define-command -hidden kotlin-indent-on-closing-curly-brace %[
-    # align to opening curly brace when alone on a line
-    try %[ execute-keys -itersel -draft <a-h><a-k>^\h+\}$<ret>hms\A|.\z<ret>1<a-&> ]
-]
-
-# Initialization
-# ‾‾‾‾‾‾‾‾‾‾‾‾‾‾
-
-hook -group kotlin-highlight global WinSetOption filetype=kotlin %{ add-highlighter window/kotlin ref kotlin }
-
-hook global WinSetOption filetype=kotlin %{
-    # cleanup trailing whitespaces when exiting insert mode
-    hook window ModeChange insert:.* -group kotlin-hooks %{ try %{ execute-keys -draft <a-x>s^\h+$<ret>d } }
-    hook window InsertChar \n -group kotlin-indent kotlin-indent-on-new-line
-    hook window InsertChar \{ -group kotlin-indent kotlin-indent-on-opening-curly-brace
-    hook window InsertChar \} -group kotlin-indent kotlin-indent-on-closing-curly-brace
-}
-
-hook -group kotlin-highlight global WinSetOption filetype=(?!kotlin).* %{ remove-highlighter window/kotlin }
-
-hook global WinSetOption filetype=(?!kotlin).* %{
-    remove-hooks window kotlin-hooks
-    remove-hooks window kotlin-indent
-}




diff --git a/.config/kak/autoload/syntax/lilypond.kak b/.config/kak/autoload/syntax/lilypond.kak
deleted file mode 100644
index 6ca4853ff1bf52b216d70138c20894e15fb51a74..0000000000000000000000000000000000000000
--- a/.config/kak/autoload/syntax/lilypond.kak
+++ /dev/null
@@ -1,66 +0,0 @@
-# Detection
-# ‾‾‾‾‾‾‾‾‾
-
-hook global BufCreate .*\.ly %{
-    set-option buffer filetype ly
-}
-
-# Highlighters
-# ‾‾‾‾‾‾‾‾‾‾‾‾
-
-add-highlighter shared/ly regions
-add-highlighter shared/ly/code default-region group
-add-highlighter shared/ly/double_string region '"' (?<!\\)(\\\\)*" fill string
-add-highlighter shared/ly/comment region '\{%' '%\}' fill comment
-add-highlighter shared/ly/comment_line region '%' $ fill comment
-
-add-highlighter shared/ly/code/ regex \b(as|es|[a-g](is|es)?|r)[0-9]*\b 0:value
-add-highlighter shared/ly/code/ regex (\(|\)|\||'|,|\.|<|>|<<|>>|\?|!|_|^|:|~|\[|/|#) 0:operator # TODO problem with -
-add-highlighter shared/ly/code/ regex %{#?-?([0-9]*\.(?!0[xX]))?\b([0-9]+|0[xX][0-9a-fA-F]+)\.?([eE][+-]?[0-9]+)?i?\b} 0:value
-add-highlighter shared/ly/code/ regex %{-?[0-9]+/[0-9]+} 0:value
-add-highlighter shared/ly/code/ regex '\\(?!_)[-\w]+\b' 0:keyword
-
-define-command -hidden ly-indent-on-new-line %~
-    evaluate-commands -draft -itersel %=
-        # preserve previous line indent
-        try %{ execute-keys -draft \;K<a-&> }
-        # indent after lines ending with { or (  TODO but not %{
-        try %[ execute-keys -draft k<a-x> <a-k> [{(]\h*$ <ret> j<a-gt> ]
-        # cleanup trailing white spaces on the previous line
-        try %{ execute-keys -draft k<a-x> s \h+$ <ret>d }
-        # align to opening paren of previous line
-        try %{ execute-keys -draft [( <a-k> \A\([^\n]+\n[^\n]*\n?\z <ret> s \A\(\h*.|.\z <ret> '<a-;>' & }
-        # copy # comments prefix
-        try %{ execute-keys -draft k <a-x> s ^\h*%\h* <ret> y jgh P }
-    =
-~
-
-define-command -hidden ly-indent-on-opening-curly-brace %[
-    # align indent with opening paren when { is entered on a new line after the closing paren
-    try %[ execute-keys -draft -itersel h<a-F>)M <a-k> \A\(.*\)\h*\n\h*\{\z <ret> s \A|.\z <ret> 1<a-&> ]
-]
-
-define-command -hidden ly-indent-on-closing-curly-brace %[
-    # align to opening curly brace when alone on a line
-    try %[ execute-keys -itersel -draft <a-h><a-k>^\h+\}$<ret>hms\A|.\z<ret>1<a-&> ]
-]
-
-# Initialization
-# ‾‾‾‾‾‾‾‾‾‾‾‾‾‾
-
-hook -group ly-highlight global WinSetOption filetype=ly %{ add-highlighter window/ly ref ly }
-
-hook global WinSetOption filetype=ly %{
-    # cleanup trailing whitespaces when exiting insert mode
-    hook window ModeChange insert:.* -group ly-hooks %{ try %{ execute-keys -draft <a-x>s^\h+$<ret>d } }
-    hook window InsertChar \n -group ly-indent ly-indent-on-new-line
-    hook window InsertChar \{ -group ly-indent ly-indent-on-opening-curly-brace
-    hook window InsertChar \} -group ly-indent ly-indent-on-closing-curly-brace
-}
-
-hook -group ly-highlight global WinSetOption filetype=(?!ly).* %{ remove-highlighter window/ly }
-
-hook global WinSetOption filetype=(?!ly).* %{
-    remove-hooks window ly-hooks
-    remove-hooks window ly-indent
-}




diff --git a/.config/kak/kakrc b/.config/kak/kakrc
deleted file mode 100644
index a1bba7debb28cfd7eaa3eadd7b0d23ff75a09992..0000000000000000000000000000000000000000
--- a/.config/kak/kakrc
+++ /dev/null
@@ -1,215 +0,0 @@
-source "%val{config}/plugins/plug.kak/rc/plug.kak"
-
-plug "andreyorst/plug.kak" noload
-plug "whereswaldon/shellcheck.kak"
-plug "https://gitlab.com/Screwtapello/kakoune-state-save"
-plug "https://git.sr.ht/~c7s/hare.kak"
-plug "andreyorst/fzf.kak" %{
-	map global normal <c-p> ': fzf-mode<ret>'
-} defer fzf-file %{
-	set-option global fzf_file_command "fd"
-}
-plug "alexherbo2/prelude.kak"
-plug "alexherbo2/auto-pairs.kak" defer auto-pairs %{
-	hook global WinCreate .* %{
-		auto-pairs-enable
-	}
-} demand
-plug "TeddyDD/kakoune-edit-or-dir" %{
-	unalias global e edit
-	alias global e edit-or-dir
-}
-plug "andreyorst/smarttab.kak" %{
-	hook global WinSetOption filetype=(python|yaml) expandtab
-	hook global BufCreate .* %{
-		set-option buffer tabstop 2
-		set-option buffer indentwidth 2
-		smarttab
-	}
-}
-plug "lePerdu/kakboard" %{
-	hook global WinCreate .* %{ kakboard-enable }
-}
-
-evaluate-commands %sh{
-	if command -v skyspell-kak >/dev/null 2>&1
-	then
-		skyspell-kak init
-	fi
-	echo "declare-user-mode skyspell"
-	echo "map global goto r '<esc>:skyspell-next<ret>' -docstring 'next spell error'"
-	echo "map global user s ': enter-user-mode skyspell<ret>' -docstring 'enter spell mode'"
-	echo "map global skyspell l ': skyspell-list<ret>' -docstring 'list spell errors'"
-	echo "map global skyspell e ': skyspell-enable en_GB<ret>' -docstring 'enable spell check in English'"
-	echo "map global skyspell d ': skyspell-disable<ret>' -docstring 'disable spell check'"
-	echo "map global skyspell p ': skyspell-enable pl_PL<ret>' -docstring 'enable spell check in Polish'"
-	echo "map global skyspell g ': skyspell-enable de_DE<ret>' -docstring 'enable spell check in German'"
-	echo "map global skyspell r ': skyspell-replace<ret>' -docstring 'suggest fixes'"
-}
-
-
-evaluate-commands %sh{
-	if command -v kak-lsp > /dev/null 2>&1
-	then
-		kak-lsp --kakoune -s $kak_session
-		echo "lsp-auto-hover-insert-mode-enable"
-		echo "map global normal <c-a-l> ':lsp-formatting<ret>'"
-		echo "map global normal <c-a-d> ':lsp-hover<ret>'"
-		echo "map global normal <c-a-s> ':lsp-document-symbol<ret>'"
-		echo "map global normal <c-a-r> ':lsp-rename-prompt<ret>'"
-		echo "map global normal '#' ':lsp-highlight-references<ret>'"
-		echo "set-option global lsp_hover_max_lines 3"
-		echo "hook global WinSetOption filetype=(c|go) %{"
-		echo "  lsp-enable-window"
-		echo "  hook window -group semantic-tokens BufReload .* lsp-semantic-tokens"
-		echo "  hook window -group semantic-tokens NormalIdle .* lsp-semantic-tokens"
-		echo "  hook window -group semantic-tokens InsertIdle .* lsp-semantic-tokens"
-		echo "  hook -once -always window WinSetOption filetype=.* %{"
-		echo "    remove-hooks window semantic-tokens"
-		echo "  }"
-		echo "}"
-		echo "set-face global Reference blue,default+i"
-		echo "set-face global DiagnosticWarning yellow+cf"
-		echo "set-face global DiagnosticError red+cf"
-		echo "map global normal <c-r> ':lsp-find-error --include-warnings<ret>' -docstring 'go to next error or warning'"
-		echo "hook global KakEnd .* lsp-exit"
-	fi
-}
-
-set-face global PrimaryCursor default+rb
-set-face global PrimaryCursorEol default,blue
-set-face global PrimarySelection default+rb
-set-face global SecondaryCursor default+r
-set-face global SecondaryCursorEol default,cyan
-set-face global SecondarySelection default+r
-set-face global Error black,red
-set-face global Information black,yellow
-set-face global MatchingChar blue,default+b
-set-face global MenuBackground blue,black
-set-face global MenuForeground black,blue
-set-face global StatusLineMode rgb:c0bcc0,rgb:1b2022
-set-face global StatusLineInfo rgb:c0bcc0,rgb:1b2022
-set-face global StatusLineValue blue,cyan
-# todo hook global ModeChange ".*:normal" %{ face ... }
-# todo hook global ModeChange ".*:insert" %{ face ... }
-set-face global MixedIndent red+frc
-set-face global OddIndent yellow+ffc
-set-face global TrailingWhitespace red+fc
-set-face global Whitespace rgb:66582a+f
-
-remove-hooks global whitespace
-hook -group whitespace -always global ModeChange 'push:normal:insert' %{
-	set-face window TrailingWhitespace Whitespace
-
-	# Restore
-	hook -always -once window ModeChange 'pop:insert:normal' %{
-		unset-face window TrailingWhitespace
-	}
-}
-
-add-highlighter global/ number-lines -hlcursor
-hook global WinSetOption filetype=(c|go|kak|python) %{
-	add-highlighter global/ column 80 default,rgb:00567e
-	add-highlighter global/ column 120 default,rgb:7e2d2b
-	add-highlighter global/ regex \b(TODO|todo|FIXME|fixme|XXX|xxx|NOTE|note)\b([^\n]*) 1:yellow+fbi 2:default+i
-}
-add-highlighter global/ show-matching
-add-highlighter global/ wrap -word -indent -marker 
-add-highlighter global/ show-whitespaces -tab '┊' -spc '⋅' -nbsp '▓'
-add-highlighter global/whitespace ref whitespace
-
-add-highlighter -override shared/whitespace group
-add-highlighter -override shared/whitespace/trailing-whitespace regex '\h+$' '0:TrailingWhitespace'
-add-highlighter -override shared/whitespace/odd-indent regex '^( {1}| {3}| {5}| {7}| {9}| {11}| {13}| {15}| {17}| {19})(?=\H)' '0:OddIndent'
-add-highlighter -override shared/whitespace/mixed-indent regex '^(\t+ | +\t)\h*' '0:MixedIndent'
-
-set-option global ui_options ncurses_assistant=cat
-
-define-command gohome %{
-	eval -itersel %{
-		try %{
-			exec -draft %{ <a-h><a-k>\A\h+.\z<ret> }
-			exec gh
-		} catch %{
-			exec gi
-		}
-	}
-}
-
-map global normal <c-a-c> ':comment-line<ret>'
-map global normal <c-a-t> 'be :ctags-search<ret>'
-map global goto t '<esc>:buffer-next<ret>' -docstring 'next buffer'
-map global normal <home> :gohome<ret>
-map global normal <end> gl
-
-hook global NormalIdle .* %{ evaluate-commands %sh{
-		fmt=""
-		branch=$(git branch --show-current 2>/dev/null)
-		if [ "$branch" ]
-		then
-			fmt="$fmt{rgb:1c9867,default}{rgb:1b2022,rgb:1c9867} $branch {rgb:892b30,rgb:1c9867}"
-		else
-			fmt="$fmt{rgb:892b30,default}"
-		fi
-		case "${kak_opt_filetype}" in
-		sh) filetype=" " ;;
-		c) filetype=" ﭰ" ;;
-		go) filetype=" ﳑ" ;;
-		plain) filetype=" " ;;
-		asciidoc) filetype=" " ;;
-		html) filetype=" " ;;
-		css) filetype=" " ;;
-		git*) filetype=" " ;;
-		"") filetype="" ;;
-		*) filetype=" [${kak_opt_filetype}]" ;;
-		esac
-
-		if [ -f ${kak_bufname} ]
-		then
-			lines=$(wc -l ${kak_bufname} | awk '{print $1}')
-			position=$(( ${kak_cursor_line} * 100 / $lines))
-			position=" ($position%%) "
-		else
-			position=" "
-		fi
-		# todo add spell
-		fmt="$fmt{rgb:c0bcc0,rgb:892b30} %val{bufname}$filetype {rgb:db9d3b,rgb:892b30}{rgb:1b2022,rgb:db9d3b} %val{cursor_line}:%val{cursor_char_column}$position{rgb:1b2022,rgb:db9d3b}{rgb:c0bcc0,rgb:1b2022} {{context_info}} {{mode_info}} {rgb:317b9f,rgb:1b2022}{rgb:1b2022,rgb:317b9f} %val{session} "
-		echo "set-option buffer modelinefmt '$fmt'"
-	}
-}
-
-hook global WinCreate [^*].* %{
-	editorconfig-load
-	evaluate-commands %sh{
-		if git status >/dev/null 2>&1
-		then
-			echo "git show-diff"
-		fi
-	}
-}
-
-hook global WinCreate .* %{
-	set-option global termcmd '/home/adam/.local/bin/wezterm start -- sh -c'
-
-	evaluate-commands %sh{
-		if [ "$PROJECT_ROOT" != '' ]
-		then
-			echo "cd $PROJECT_ROOT"
-		fi
-	}
-}
-
-hook global BufWritePost .* %{ evaluate-commands %sh{
-		if git status >/dev/null 2>&1
-		then
-			echo "git show-diff"
-		fi
-		if [ -n "$kak_opt_lintcmd" ]; then
-			echo 'lint'
-		fi
-	}
-}
-
-# wezterm bug
-map global normal [ <esc>
-map global normal <a-[> <esc>




diff --git a/.config/kak-lsp/kak-lsp.toml b/.config/kak-lsp/kak-lsp.toml
deleted file mode 100644
index bb4ef1c52448287f5b07e5bb7a20f8d3144267c6..0000000000000000000000000000000000000000
--- a/.config/kak-lsp/kak-lsp.toml
+++ /dev/null
@@ -1,69 +0,0 @@
-verbosity = 2
-snippet_support = true
-
-[[semantic_tokens]]
-token = "comment"
-face = "documentation"
-modifiers = ["documentation"]
-
-[[semantic_tokens]]
-token = "comment"
-face = "comment"
-
-[[semantic_tokens]]
-token = "function"
-face = "function"
-
-[[semantic_tokens]]
-token = "keyword"
-face = "keyword"
-
-[[semantic_tokens]]
-token = "namespace"
-face = "module"
-
-[[semantic_tokens]]
-token = "operator"
-face = "operator"
-
-[[semantic_tokens]]
-token = "string"
-face = "string"
-
-[[semantic_tokens]]
-token = "type"
-face = "type"
-
-[[semantic_tokens]]
-token = "variable"
-face = "default+d"
-modifiers = ["readonly"]
-
-[[semantic_tokens]]
-token = "variable"
-face = "default+d"
-modifiers = ["constant"]
-
-[[semantic_tokens]]
-token = "variable"
-face = "variable"
-
-[server]
-timeout = 1800
-
-[language.c_cpp]
-filetypes = ["c", "cpp"]
-roots = ["compile_commands.json", ".ccls", "tags"]
-command = "ccls"
-args = ["--init={\"completion\":{\"detailedLabel\":false}}"]
-
-[language.go]
-filetypes = ["go"]
-roots = ["Gopkg.toml", "go.mod", ".git", ".hg"]
-command = "gopls"
-args = ["serve"]
-
-[language.tex]
-filetypes = ["latex"]
-roots = ["makefile", ".git"]
-command = "texlab"