Skip to content

Commit

Permalink
set shift width to 2 for Nix and Ruby
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianHicks committed Jan 17, 2020
1 parent 5e26dbf commit 2d8e457
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions dotfiles/kakoune.nix
Expand Up @@ -55,7 +55,7 @@ in {
hooks = [
{
commands = "auto-pairs-enable";
name = "WinSetOption";
name = "WinCreate";
option = ".*";
}
{
Expand All @@ -72,7 +72,7 @@ in {
}
{
commands = "git show-diff";
name = "WinSetOption";
name = "WinCreate";
option = ".*";
}
{
Expand All @@ -88,8 +88,11 @@ in {

# Nix
{
commands = "set-option buffer formatcmd nixfmt";
name = "WinSetOption";
commands = ''
set-option buffer formatcmd nixfmt
set-option buffer indentwidth 2
'';
name = "WinCreate";
option = ".*.nix";
}
{
Expand All @@ -98,9 +101,16 @@ in {
option = ".*.nix";
}

# Ruby
{
commands = "set-option buffer indentwidth 2";
name = "WinCreate";
option = ".*.rb";
}

# Elm
{
name = "WinSetOption";
name = "WinCreate";
option = ".*.elm";
commands = ''
evaluate-commands %sh{
Expand Down

0 comments on commit 2d8e457

Please sign in to comment.