diff options
Diffstat (limited to 'autoload')
| -rw-r--r-- | autoload/+init.kak | 2 | ||||
| -rw-r--r-- | autoload/lsp-config.kak | 6 | ||||
| -rw-r--r-- | autoload/marks.kak | 7 |
3 files changed, 9 insertions, 6 deletions
diff --git a/autoload/+init.kak b/autoload/+init.kak index f2cc02a..b1290fb 100644 --- a/autoload/+init.kak +++ b/autoload/+init.kak @@ -1,11 +1,11 @@ # Link builtin autoloads nop %sh{ ln -s "$kak_runtime/rc" "$kak_config/autoload/standard-library" 2>/dev/null || true } evaluate-commands %sh{kcr init kakoune} +evaluate-commands %sh{kak-tree-sitter -dksvv --init "${kak_session}" --with-highlighting --with-text-objects} hook global KakBegin .* %{ require-module luar set-option global luar_interpreter luajit - # evaluate-commands %sh{kak-tree-sitter -dksvv --init "${kak_session}" --with-highlighting --with-text-objects} } colorscheme phenax diff --git a/autoload/lsp-config.kak b/autoload/lsp-config.kak index c1c6cb9..bb24686 100644 --- a/autoload/lsp-config.kak +++ b/autoload/lsp-config.kak @@ -34,9 +34,9 @@ hook global BufSetOption filetype=(?:javascript|typescript) %{ args = ["--stdio"] [tailwindcss-language-server.settings.tailwindCSS] editor = {} - [biome] - root_globs = ["biome.json", "package.json", "tsconfig.json", "jsconfig.json"] - args = ["lsp-proxy"] + # [biome] + # root_globs = ["biome.json", "package.json", "tsconfig.json", "jsconfig.json"] + # args = ["lsp-proxy"] } } diff --git a/autoload/marks.kak b/autoload/marks.kak index adbf3a2..8eb4117 100644 --- a/autoload/marks.kak +++ b/autoload/marks.kak @@ -2,7 +2,10 @@ declare-option str marks_path declare-option str marks_name hook global KakBegin .* %{ - set-option global marks_path %sh{ echo "$XDG_DATA_HOME/kak/marks" } + set-option global marks_path %sh{ + datadir="${XDG_DATA_HOME:-"$HOME/.local/share"}" + echo "$datadir/kak/marks" + } } hook global EnterDirectory .* %{ evaluate-commands %sh{ @@ -26,7 +29,7 @@ define-command marks-add -params 1..2 %{ pos="$(echo "$pos" | awk '{printf "%.1f", $1 <= 1 ? 0 : $1 - 0.5}')"; fi function append() { cat; echo -e "$pos\t$newfile"; } - newfiles=$(grep -v "$newfile" "$path" \ + newfiles=$(grep -v -F "$newfile" "$path" \ | nl | sed 's/^\s*//' \ | append | LC_ALL=C sort -g -b -k 2 | uniq -f1 | LC_ALL=C sort -g -b \ | sed 's/^\s*[-.0-9]\+\s\+//') |
