mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 03:18:16 +00:00

Problem: filetype: pkl files are not recognized
Solution: detect *.pkl files as pkl filetype, include
a filetype plugin (Riley Bruins)
References:
https://pkl-lang.org/
https://github.com/apple/pkl
closes: vim/vim#17751
d128889b30
Co-authored-by: Riley Bruins <ribru17@hotmail.com>
15 lines
313 B
VimL
15 lines
313 B
VimL
" Vim filetype plugin
|
|
" Language: Pkl
|
|
" Maintainer: Riley Bruins <ribru17@gmail.com>
|
|
" Last Change: 2025 Jul 14
|
|
|
|
if exists('b:did_ftplugin')
|
|
finish
|
|
endif
|
|
let b:did_ftplugin = 1
|
|
|
|
setlocal comments=sO:*\ -,mO:*\ \ ,exO:*/,s1:/*,mb:*,ex:*/,://
|
|
setlocal commentstring=//\ %s
|
|
|
|
let b:undo_ftplugin = 'setl com< cms<'
|