summaryrefslogtreecommitdiffstats
path: root/indent/zig.vim
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2022-10-14 17:40:10 +0200
committerAdam Stankiewicz <sheerun@sher.pl>2022-10-14 17:40:10 +0200
commitbc8a81d3592dab86334f27d1d43c080ebf680d42 (patch)
treef367857d8c196d36f2d6dec3c2f6c9d703b06b7c /indent/zig.vim
parent38282d58387cff48ac203f6912c05e4c8686141b (diff)
downloadvim-polyglot-bc8a81d3592dab86334f27d1d43c080ebf680d42.tar.gz
vim-polyglot-bc8a81d3592dab86334f27d1d43c080ebf680d42.zip
Update
Diffstat (limited to 'indent/zig.vim')
-rw-r--r--indent/zig.vim2
1 files changed, 2 insertions, 0 deletions
diff --git a/indent/zig.vim b/indent/zig.vim
index fc9f5d6d..7131c2ed 100644
--- a/indent/zig.vim
+++ b/indent/zig.vim
@@ -37,6 +37,8 @@ setlocal cinkeys=0{,0},0),0],!^F,o,O
setlocal indentexpr=GetZigIndent(v:lnum)
+let b:undo_indent = "setlocal cindent< cinkeys< cinoptions< indentexpr<"
+
function! GetZigIndent(lnum)
let curretLineNum = a:lnum
let currentLine = getline(a:lnum)