31 lines
845 B
VimL
31 lines
845 B
VimL
|
" lisp.vim:
|
||
|
" Lisp indent plugin for Slimv
|
||
|
" Version: 0.9.14
|
||
|
" Last Change: 22 Jan 2021
|
||
|
" Maintainer: Tamas Kovacs <kovisoft at gmail dot com>
|
||
|
" License: This file is placed in the public domain.
|
||
|
" No warranty, express or implied.
|
||
|
" *** *** Use At-Your-Own-Risk! *** ***
|
||
|
"
|
||
|
" =====================================================================
|
||
|
"
|
||
|
" Load Once:
|
||
|
if exists("b:did_indent") || (exists("g:slimv_indent_disable") && g:slimv_indent_disable)
|
||
|
finish
|
||
|
endif
|
||
|
|
||
|
" Handle cases when lisp dialects explicitly use the lisp indent plugins
|
||
|
if &ft == "clojure" && exists("g:slimv_disable_clojure")
|
||
|
finish
|
||
|
endif
|
||
|
|
||
|
if &ft == "scheme" && exists("g:slimv_disable_scheme")
|
||
|
finish
|
||
|
endif
|
||
|
|
||
|
setlocal nolisp
|
||
|
setlocal autoindent
|
||
|
setlocal expandtab
|
||
|
setlocal indentexpr=SlimvIndent(v:lnum)
|
||
|
|