mirror of
https://github.com/neovim/neovim.git
synced 2025-12-25 07:39:11 +00:00
Problem: Comment formatting does not work by default for bpftrace.
Solution: Change default 'formatoptions' similarly as C and many other
languages.
closes: vim/vim#18996
5e577c7aa8
Co-authored-by: Stanislaw Gruszka <stf_xl@wp.pl>
17 lines
404 B
VimL
17 lines
404 B
VimL
" Vim filetype plugin
|
|
" Language: bpftrace
|
|
" Maintainer: Stanislaw Gruszka <stf_xl@wp.pl>
|
|
" Last Change: 2025 Dec 23
|
|
|
|
if exists('b:did_ftplugin')
|
|
finish
|
|
endif
|
|
let b:did_ftplugin = 1
|
|
|
|
setlocal comments=sO:*\ -,mO:*\ \ ,exO:*/,s1:/*,mb:*,ex:*/,://
|
|
setlocal commentstring=//\ %s
|
|
|
|
setlocal formatoptions-=t formatoptions+=croql
|
|
|
|
let b:undo_ftplugin = "setlocal comments< commentstring< formatoptions<"
|