Skip to content

Commit

Permalink
use smarttab.kak for better tabbing
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianHicks committed Jan 21, 2020
1 parent 0be350c commit c8e2bc3
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 8 deletions.
28 changes: 20 additions & 8 deletions dotfiles/kakoune.nix
Expand Up @@ -99,7 +99,6 @@ in {
{
commands = ''
set-option buffer formatcmd nixfmt
set-option buffer indentwidth 2
'';
name = "WinCreate";
option = ".*.nix";
Expand All @@ -110,13 +109,6 @@ in {
option = ".*.nix";
}

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

# Elm
{
name = "WinCreate";
Expand All @@ -134,6 +126,26 @@ in {
name = "BufWritePre";
option = ".*.elm";
}

# Indents
{
name = "WinCreate";
option = ".*.(nix|rb)";
commands = ''
expandtab
set-option buffer tabstop 2
set-option buffer softtabstop 2
'';
}
{
name = "WinCreate";
option = ".*.elm";
commands = ''
expandtab
set-option buffer tabstop 4
set-option buffer softtabstop 4
'';
}
];

keyMappings = [
Expand Down
13 changes: 13 additions & 0 deletions nix/sources.json
Expand Up @@ -345,6 +345,19 @@
"url": "https://github.com/whereswaldon/shellcheck.kak/archive/9acad49508ee95c215541e58353335d9d5b8a927.tar.gz",
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
},
"smarttab.kak": {
"branch": "master",
"description": "Automatic handling different styles of indentation and alignment. Mirror of https://gitlab.com/andreyorst/smarttab.kak",
"homepage": "",
"kakoune": "plugin",
"owner": "andreyorst",
"repo": "smarttab.kak",
"rev": "1321c308edac6bd892e2bd2f683432402a04be98",
"sha256": "048qq8aj405q3zm28jjh6ardxb8ixkq6gs1h3bwdv2qc4zi2nj4g",
"type": "tarball",
"url": "https://github.com/andreyorst/smarttab.kak/archive/1321c308edac6bd892e2bd2f683432402a04be98.tar.gz",
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
},
"tabular": {
"branch": "master",
"description": "TODO",
Expand Down

0 comments on commit c8e2bc3

Please sign in to comment.