mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 03:18:16 +00:00
vim-patch:9.1.1548: filetype: OpenFGA files are not recognized
Problem: filetype: OpenFGA files are not recognized
Solution: detect *.fga files as fga filetype, include an fga filetype
plugin (Riley Bruins)
References:
https://github.com/openfga
https://marketplace.visualstudio.com/items?itemName=openfga.openfga-vscode
closes: vim/vim#17752
0992f62fc1
Co-authored-by: Riley Bruins <ribru17@hotmail.com>
This commit is contained in:

committed by
Christian Clason

parent
fa648731ec
commit
4195b82ec9
13
runtime/ftplugin/fga.vim
Normal file
13
runtime/ftplugin/fga.vim
Normal file
@@ -0,0 +1,13 @@
|
||||
" Vim filetype plugin
|
||||
" Language: FGA
|
||||
" Maintainer: Riley Bruins <ribru17@gmail.com>
|
||||
" Last Change: 2025 Jul 14
|
||||
|
||||
if exists('b:did_ftplugin')
|
||||
finish
|
||||
endif
|
||||
let b:did_ftplugin = 1
|
||||
|
||||
setl comments=:# commentstring=#\ %s
|
||||
|
||||
let b:undo_ftplugin = 'setl com< cms<'
|
@@ -459,6 +459,7 @@ local extension = {
|
||||
fwt = 'fan',
|
||||
lib = 'faust',
|
||||
fnl = 'fennel',
|
||||
fga = 'fga',
|
||||
m4gl = 'fgl',
|
||||
['4gl'] = 'fgl',
|
||||
['4gh'] = 'fgl',
|
||||
|
@@ -285,6 +285,7 @@ func s:GetFilenameChecks() abort
|
||||
\ 'faust': ['file.dsp', 'file.lib'],
|
||||
\ 'fennel': ['file.fnl', '.fennelrc', 'fennelrc'],
|
||||
\ 'fetchmail': ['.fetchmailrc'],
|
||||
\ 'fga': ['file.fga'],
|
||||
\ 'fgl': ['file.4gl', 'file.4gh', 'file.m4gl'],
|
||||
\ 'firrtl': ['file.fir'],
|
||||
\ 'fish': ['file.fish'],
|
||||
|
Reference in New Issue
Block a user