mirror of
https://github.com/neovim/neovim.git
synced 2024-12-19 18:55:14 -07:00
79d492a421
Problem: filetype: OpenGL Shading Language files are not detected
Solution: detect various file extensions as GLSL filetype, include
indent and syntax script, do no longer recognize '*.comp'
as Mason filetype (Gregory Anders)
closes: vim/vim#15317
e4b991ed36
15 lines
320 B
VimL
15 lines
320 B
VimL
" Language: OpenGL Shading Language
|
|
" Maintainer: Gregory Anders <greg@gpanders.com>
|
|
" Last Modified: 2024 Jul 21
|
|
" Upstream: https://github.com/tikhomirov/vim-glsl
|
|
|
|
if exists('b:did_indent')
|
|
finish
|
|
endif
|
|
let b:did_indent = 1
|
|
|
|
setlocal autoindent cindent
|
|
setlocal cinoptions&
|
|
|
|
let b:undo_indent = 'setl ai< ci< cino<'
|