mirror of
https://github.com/neovim/neovim.git
synced 2026-08-19 02:24:46 -05:00
Problem: filetype: bicep filetype used for 2 bicep file types
Solution: Detect *.bicepparam files as bicep-param filetype, include
new bicep-params and bicep filetype plugin
(Scott McKendry)
The bicep language server handles parameter files differently than
regular bicep files. Treating them the same at the editor level leads to
false positive diagnostics in the editor.
References:
Bicep Language Constants:
- https://github.com/Azure/bicep/blob/51392d32ca2c8b94b1bb7a255e78e1d559d12573/src/Bicep.Core/LanguageConstants.cs#L23
VS Code Extension definition:
- https://github.com/Azure/bicep/blob/51392d32ca2c8b94b1bb7a255e78e1d559d12573/src/vscode-bicep/package.json#L47
closes: vim/vim#19026
https://github.com/vim/vim/commit/4e722fdfdd987c11136e3533bd65d0ed4d15f829
Co-authored-by: Scott McKendry <me@scottmckendry.tech>
15 lines
316 B
VimL
15 lines
316 B
VimL
" Vim filetype plugin
|
|
" Language: Bicep
|
|
" Maintainer: Scott McKendry <me@scottmckendry.tech>
|
|
" Last Change: 2025 Dec 27
|
|
|
|
if exists('b:did_ftplugin')
|
|
finish
|
|
endif
|
|
let b:did_ftplugin = 1
|
|
|
|
setlocal comments=s1:/*,mb:*,ex:*/,://
|
|
setlocal commentstring=//\ %s
|
|
|
|
let b:undo_ftplugin = "setlocal comments< commentstring<"
|