aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkshay Nair <phenax5@gmail.com>2026-02-16 18:54:16 +0530
committerAkshay Nair <phenax5@gmail.com>2026-02-16 18:54:16 +0530
commitdf01f61f5aa28a15ea3a9adecfa6822b410c1515 (patch)
tree58637abf15d3cd34d0770e37b2cf1c43743c2a1a
parent8e6fa2062700d8c4816e8ecd95940805bedc245b (diff)
downloadkakoune-config-df01f61f5aa28a15ea3a9adecfa6822b410c1515.tar.gz
kakoune-config-df01f61f5aa28a15ea3a9adecfa6822b410c1515.zip
Config sync
Diffstat (limited to '')
-rw-r--r--autoload/+init.kak32
-rw-r--r--autoload/lsp-config.kak2
l---------autoload/plugins2
-rw-r--r--autoload/repl.kak1
l---------autoload/standard-library2
-rw-r--r--colors/phenax.kak4
6 files changed, 35 insertions, 8 deletions
diff --git a/autoload/+init.kak b/autoload/+init.kak
index 5169932..5ce7c45 100644
--- a/autoload/+init.kak
+++ b/autoload/+init.kak
@@ -1,8 +1,8 @@
# Link builtin autoloads
nop %sh{
rm -f "$kak_config/autoload/standard-library" || true
- rm -f "$kak_config/autoload/plugins" || true
ln -sf "$kak_runtime/rc" "$kak_config/autoload/standard-library" 2>/dev/null || true
+ rm -f "$kak_config/autoload/plugins" || true
ln -sf "$kak_runtime/autoload/plugins" "$kak_config/autoload/plugins" 2>/dev/null || true
}
@@ -12,6 +12,12 @@ set-option global disabled_hooks .*-trim-indent
eval %sh{kak-tree-sitter -dksvv --init "${kak_session}" --with-highlighting --with-text-objects}
eval %sh{kcr init kakoune}
+# hook global BufCreate .*[.]tsx %{
+# set-option buffer filetype tsx
+# set-option buffer tree_sitter_lang tsx
+# set-option buffer lsp_language_id typescriptreact
+# }
+
colorscheme phenax
set-option global autoreload yes
set-option global incsearch true
@@ -32,8 +38,27 @@ set-option global modelinefmt \
%val{cursor_line}/%val{buf_line_count}:%val{cursor_char_column}
{StatusLineBufname}%sh{echo "$kak_bufname" | awk -F/ "{if (NF >= 2) {print \$(NF-1) \"/\" \$NF} else {print \$NF}}"}'
+# declare-option line-specs relative_markers
+# define-command -hidden update_relative_markers %{
+# evaluate-commands %sh{
+# indicators=14
+# line_specs=$(seq $(($indicators + 1)) | while IFS= read n; do
+# diff=$(echo "($n - ($indicators/2) - 1) * 5" | bc)
+# line=$(echo "$kak_cursor_line + $diff" | bc)
+# if [ "$line" -gt 0 ] && [ ! "$line" = "$kak_cursor_line" ]; then
+# echo -e "$line|{gray}$diff"
+# fi
+# done);
+# echo "set-option window relative_markers %val{timestamp} $(printf ' %s' $line_specs)"
+# }
+# }
+# hook global WinCreate .* %{
+# hook window NormalIdle .* %{ update_relative_markers }
+# }
+# add-highlighter global/ flag-lines blue relative_markers
+
# Highlighters
-add-highlighter global/ number-lines -relative -hlcursor -min-digits 3 -separator ' '
+add-highlighter global/ number-lines -hlcursor -min-digits 3 -separator ' ' # -relative
add-highlighter global/ column '%val{cursor_char_column}' ColumnLine
add-highlighter global/ line '%val{cursor_line}' RowLine
add-highlighter global/ regex \h+$ 0:Error # Highlight trailing whitespaces
@@ -64,7 +89,8 @@ map global system d ': buffer *debug*<ret>' -docstring 'Switch to debug buffer'
map global system f ':set buffer filetype ' -docstring 'Set filetype'
map global system M ':set buffer makecmd ""<left>' -docstring 'Set compile command'
map global system m ': make<ret>' -docstring 'Compile'
-map global system p ': info %val{buffile}<ret>' -docstring 'Print file path'
+map global system p ': info %sh{ realpath -s --relative-to="$PWD" "$kak_buffile" }<ret>' -docstring 'Print relative file path'
+map global system P ': info %val{buffile}<ret>' -docstring 'Print absolute file path'
map global system ! ':info %sh{}<left>' -docstring 'Run command'
map global system t ': terminal %sh{ echo "$SHELL" }<ret>' -docstring 'Open new term'
diff --git a/autoload/lsp-config.kak b/autoload/lsp-config.kak
index 95dcd21..0386778 100644
--- a/autoload/lsp-config.kak
+++ b/autoload/lsp-config.kak
@@ -56,7 +56,7 @@ hook global BufSetOption filetype=(?:javascript|typescript|tsx|jsx) %{
hook global BufSetOption filetype=(?:c|cpp|objc) %{
set-option buffer lsp_servers %{
[clangd]
- args = [ "--log=info", "--clang-tidy" ]
+ args = [ "--log=verbose", "--clang-tidy" ]
root_globs = ["compile_commands.json", ".clangd", ".git"]
}
}
diff --git a/autoload/plugins b/autoload/plugins
index 2db5386..fb34fce 120000
--- a/autoload/plugins
+++ b/autoload/plugins
@@ -1 +1 @@
-/nix/store/fh4r60z346kassl8iq39095kb5kf57jg-kakoune-2025.06.03/share/kak/autoload/plugins \ No newline at end of file
+/nix/store/w0nyi63w45vhrkaxjxyc9cpqg1lvrws0-kakoune-2025.06.03/share/kak/autoload/plugins \ No newline at end of file
diff --git a/autoload/repl.kak b/autoload/repl.kak
index 910815a..d7b43d9 100644
--- a/autoload/repl.kak
+++ b/autoload/repl.kak
@@ -11,6 +11,7 @@ map global repl p ': xrepl-send-prompt<ret>' -docstring 'Prompt for text to send
map global repl q ': xrepl-quit<ret>' -docstring 'Quit repl'
declare-option bool xrepl_running false;
+# declare-option int xrepl_tmux_repl_id;
declare-option str xrepl_current_name;
declare-option str xrepl_current_cmd;
declare-option str xrepl_current_transform;
diff --git a/autoload/standard-library b/autoload/standard-library
index e13edf4..a9eac7b 120000
--- a/autoload/standard-library
+++ b/autoload/standard-library
@@ -1 +1 @@
-/nix/store/fh4r60z346kassl8iq39095kb5kf57jg-kakoune-2025.06.03/share/kak/rc \ No newline at end of file
+/nix/store/w0nyi63w45vhrkaxjxyc9cpqg1lvrws0-kakoune-2025.06.03/share/kak/rc \ No newline at end of file
diff --git a/colors/phenax.kak b/colors/phenax.kak
index 0efdc46..8819c66 100644
--- a/colors/phenax.kak
+++ b/colors/phenax.kak
@@ -15,7 +15,7 @@ evaluate-commands %sh{
menu="rgb:101414"
mildhighlight1="rgb:101414"
mildhighlight2="rgb:202424"
- comment="rgb:434545"
+ comment="rgb:636565"
red="rgb:cc6666"
orange="rgb:de935f"
yellow="rgb:f0c674"
@@ -175,7 +175,7 @@ evaluate-commands %sh{
face global InfoDiagnosticWarning ${orange},default
face global InfoDiagnosticHint ${purple},default
face global InfoDiagnosticInformation ${purple},default
- face global DiagnosticError ${red}+uf
+ face global DiagnosticError default+u
face global DiagnosticWarning ${yellow}+uf
face global DiagnosticInfo ${purple}+f
face global DiagnosticHint ${purple}+f