Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 3 additions & 6 deletions indent/nix.vim
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,9 @@ set cpo&vim
let s:skip_syntax = '\%(Comment\|String\)$'
let s:binding_open = '\%(\<let\>\)'
let s:binding_close = '\%(\<in\>\)'
let s:block_open = '\%({\|[\)'
let s:block_close = '\%(}\|]\)'

let s:block_open = '\%({\|[\|(\)'
let s:block_close = '\%(}\|]\|)\)'

function! GetNixIndent()
let lnum = prevnonblank(v:lnum - 1)
Expand Down Expand Up @@ -60,10 +61,6 @@ function! GetNixIndent()
let ind -= &sw
endif

if last_line =~ '[(=]$'
let ind += &sw
endif

if last_line =~ '\<let\s*$'
let ind += &sw
endif
Expand Down