mirror of
https://github.com/neovim/neovim.git
synced 2025-10-21 09:12:07 +00:00
vim-patch:9.1.0544: filetype: ldapconf files are not recognized
Problem: filetype: ldapconf files are not recognized
Solution: Detect '.ldaprc', 'ldap.conf' and 'ldaprc' files as ldapconf
filetype, include a simple ldapconf ftplugin file
(Riley Bruins)
[Specification](https://www.openldap.org/software//man.cgi?query=ldap.conf&sektion=5&apropos=0&manpath=OpenLDAP+2.4-Release)
closes: vim/vim#15176
62f31e9499
Co-authored-by: Riley Bruins <ribru17@hotmail.com>
This commit is contained in:
13
runtime/ftplugin/ldapconf.vim
Normal file
13
runtime/ftplugin/ldapconf.vim
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
" Vim filetype plugin
|
||||||
|
" Language: ldap.conf(5) configuration file.
|
||||||
|
" Maintainer: Riley Bruins <ribru17@gmail.com>
|
||||||
|
" Last Change: 2024 Jul 06
|
||||||
|
|
||||||
|
if exists('b:did_ftplugin')
|
||||||
|
finish
|
||||||
|
endif
|
||||||
|
let b:did_ftplugin = 1
|
||||||
|
|
||||||
|
setl comments=:# commentstring=#\ %s
|
||||||
|
|
||||||
|
let b:undo_ftplugin = 'setl com< cms<'
|
@@ -1481,6 +1481,9 @@ local filename = {
|
|||||||
Kconfig = 'kconfig',
|
Kconfig = 'kconfig',
|
||||||
['Kconfig.debug'] = 'kconfig',
|
['Kconfig.debug'] = 'kconfig',
|
||||||
['Config.in'] = 'kconfig',
|
['Config.in'] = 'kconfig',
|
||||||
|
['ldaprc'] = 'ldapconf',
|
||||||
|
['.ldaprc'] = 'ldapconf',
|
||||||
|
['ldap.conf'] = 'ldapconf',
|
||||||
['lftp.conf'] = 'lftp',
|
['lftp.conf'] = 'lftp',
|
||||||
['.lftprc'] = 'lftp',
|
['.lftprc'] = 'lftp',
|
||||||
['/.libao'] = 'libao',
|
['/.libao'] = 'libao',
|
||||||
|
@@ -386,6 +386,7 @@ func s:GetFilenameChecks() abort
|
|||||||
\ 'lace': ['file.ace', 'file.ACE'],
|
\ 'lace': ['file.ace', 'file.ACE'],
|
||||||
\ 'latte': ['file.latte', 'file.lte'],
|
\ 'latte': ['file.latte', 'file.lte'],
|
||||||
\ 'ld': ['file.ld', 'any/usr/lib/aarch64-xilinx-linux/ldscripts/aarch64elf32b.x'],
|
\ 'ld': ['file.ld', 'any/usr/lib/aarch64-xilinx-linux/ldscripts/aarch64elf32b.x'],
|
||||||
|
\ 'ldapconf': ['ldap.conf', '.ldaprc', 'ldaprc'],
|
||||||
\ 'ldif': ['file.ldif'],
|
\ 'ldif': ['file.ldif'],
|
||||||
\ 'lean': ['file.lean'],
|
\ 'lean': ['file.lean'],
|
||||||
\ 'ledger': ['file.ldg', 'file.ledger', 'file.journal'],
|
\ 'ledger': ['file.ldg', 'file.ledger', 'file.journal'],
|
||||||
|
Reference in New Issue
Block a user