We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
ClojureIndent()
1 parent 082120a commit 161ea5fCopy full SHA for 161ea5f
indent/clojure.vim
@@ -297,8 +297,8 @@ function! s:ListIndent(delim_pos)
297
return base_indent + (indent_style ==# 'traditional' || sym_match == 0)
298
endfunction
299
300
-" TODO: make this usable from other Clojure-like languages.
301
-function! s:ClojureIndent()
+" TODO: improve configurability for other Clojure-like languages.
+function! ClojureIndent()
302
" Calculate and return indent to use based on the matching form.
303
let [form, pos] = s:InsideForm(v:lnum)
304
if form ==# '^' | return 0 " At top-level, no indent.
@@ -315,7 +315,7 @@ if exists('&lispoptions')
315
setlocal lisp lispoptions=expr:1
316
let b:undo_indent .= ' lispoptions<'
317
endif
318
-setlocal indentexpr=s:ClojureIndent()
+setlocal indentexpr=ClojureIndent()
319
320
let &cpoptions = s:save_cpo
321
unlet! s:save_cpo
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments