Skip to content

Commit

Permalink
Set up special indentation for crab
Browse files Browse the repository at this point in the history
  • Loading branch information
natsukagami committed Jul 29, 2024
1 parent e82627e commit 28080d3
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions home/kakoune/kakrc
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,13 @@ map global normal D ": delete-current-brackets<ret>"
# Tab sizes
hook global InsertChar \t %{ exec -draft -itersel h@ }
set global tabstop 2
set global indentwidth 2
set global indentwidth 2

# Language-specific tabstop with override
hook global WinSetOption filetype=(rust) %{
set window tabstop 4
set window indentwidth 4
}

# Ctrl + a in insert mode = esc
map global insert <c-a> '<esc>'
Expand Down Expand Up @@ -152,9 +158,6 @@ hook global WinSetOption filetype=(rust) %{
hook global WinSetOption filetype=(scala) %{
# Format the document if possible
hook -group scala-fmt window BufWritePre .* %{ lsp-formatting-sync }

set window tabstop 2
set window indentwidth 2
}

hook global WinSetOption filetype=(typst) %{
Expand Down

0 comments on commit 28080d3

Please sign in to comment.