mirror of
https://github.com/sheerun/vim-polyglot.git
synced 2025-11-14 14:33:50 -05:00
31 lines
690 B
VimL
31 lines
690 B
VimL
let files = filter(globpath(&rtp, 'ftplugin/toml.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
|
|
if len(files) > 0
|
|
exec 'source ' . files[0]
|
|
finish
|
|
endif
|
|
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'toml') == -1
|
|
|
|
" File: ftplugin/toml.vim
|
|
" Author: Kevin Ballard <kevin@sb.org>
|
|
" Description: FileType Plugin for Toml
|
|
" Last Change: Feb 12, 2019
|
|
|
|
if exists('b:did_ftplugin')
|
|
finish
|
|
endif
|
|
let b:did_ftplugin = 1
|
|
|
|
let s:save_cpo = &cpo
|
|
set cpo&vim
|
|
let b:undo_ftplugin = 'setlocal commentstring< comments<'
|
|
|
|
setlocal commentstring=#\ %s
|
|
setlocal comments=:#
|
|
|
|
let &cpo = s:save_cpo
|
|
unlet s:save_cpo
|
|
|
|
" vim: set et sw=4 ts=4:
|
|
|
|
endif
|