mirror of
https://github.com/neovim/neovim.git
synced 2026-09-02 12:23:50 +00:00
Problem: filetype: bazelrc files are not recognized
Solution: Detect *.bazelrc and tools/bazel.rc files as bazelrc filetype,
include syntax und filetype plugins, update the menus
(Barrett Ruth).
closes: vim/vim#21146
1afe7ad1bb
Co-authored-by: Barrett Ruth <br@barrettruth.com>
18 lines
354 B
VimL
18 lines
354 B
VimL
" Vim filetype plugin file
|
|
" Language: Bazel rc file
|
|
" Maintainer: Barrett Ruth <br@barrettruth.com>
|
|
" Last Change: 2026 Aug 25
|
|
|
|
if exists("b:did_ftplugin")
|
|
finish
|
|
endif
|
|
let b:did_ftplugin = 1
|
|
|
|
setlocal comments=:#
|
|
setlocal commentstring=#\ %s
|
|
setlocal formatoptions-=t formatoptions+=croql
|
|
|
|
let b:undo_ftplugin = "setlocal com< cms< fo<"
|
|
|
|
" vim: ts=8
|