vim-patch:26b0176a98f8

runtime(racket): undo some indent options only when vim9script is available (vim/vim#13935)

This copies commit 64edf95 (indent: only reset some options when has
vim9, 2024-01-30) from https://github.com/benknoble/vim-racket.

26b0176a98

Co-authored-by: D. Ben Knoble <ben.knoble+github@gmail.com>
This commit is contained in:
Christian Clason 2024-01-31 09:38:59 +01:00
parent 9f15a18fa5
commit 6e8e3a2a3a

View File

@ -3,7 +3,7 @@
" Maintainer: D. Ben Knoble <ben.knoble+github@gmail.com> " Maintainer: D. Ben Knoble <ben.knoble+github@gmail.com>
" Previous Maintainer: Will Langstroth <will@langstroth.com> " Previous Maintainer: Will Langstroth <will@langstroth.com>
" URL: https://github.com/benknoble/vim-racket " URL: https://github.com/benknoble/vim-racket
" Last Change: 2023 Jul 17 " Last Change: 2024 Jan 30
if exists("b:did_indent") if exists("b:did_indent")
finish finish
@ -66,4 +66,4 @@ setlocal lispwords+=if-view,case-view,cond-view,list-view,dyn-view
setlocal lispwords+=case/dep setlocal lispwords+=case/dep
setlocal lispwords+=define/obs setlocal lispwords+=define/obs
let b:undo_indent = "setlocal indentexpr< lisp< lispoptions< ai< si< lw<" let b:undo_indent = "setlocal lisp< ai< si< lw<" .. (has('vim9script') ? 'indentexpr< lispoptions<' : '')