mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
vim-patch:9.1.0839: filetype: leo files are not recognized
Problem: filetype: leo files are not recognized
Solution: detect '*.leo' files as leo filetype, include
a filetype plugin (Riley Bruins)
References:
https://github.com/ProvableHQ/leo
closes: vim/vim#15988
93f65a4ab8
Co-authored-by: Riley Bruins <ribru17@hotmail.com>
This commit is contained in:
parent
65b9499e4a
commit
ba40a6dbe3
13
runtime/ftplugin/leo.vim
Normal file
13
runtime/ftplugin/leo.vim
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
" Vim filetype plugin
|
||||||
|
" Language: Leo
|
||||||
|
" Maintainer: Riley Bruins <ribru17@gmail.com>
|
||||||
|
" Last Change: 2024 Nov 03
|
||||||
|
|
||||||
|
if exists('b:did_ftplugin')
|
||||||
|
finish
|
||||||
|
endif
|
||||||
|
let b:did_ftplugin = 1
|
||||||
|
|
||||||
|
setl comments=:// commentstring=//\ %s
|
||||||
|
|
||||||
|
let b:undo_ftplugin = 'setl com< cms<'
|
@ -670,6 +670,7 @@ local extension = {
|
|||||||
journal = 'ledger',
|
journal = 'ledger',
|
||||||
ldg = 'ledger',
|
ldg = 'ledger',
|
||||||
ledger = 'ledger',
|
ledger = 'ledger',
|
||||||
|
leo = 'leo',
|
||||||
less = 'less',
|
less = 'less',
|
||||||
lex = 'lex',
|
lex = 'lex',
|
||||||
lxx = 'lex',
|
lxx = 'lex',
|
||||||
|
@ -408,6 +408,7 @@ func s:GetFilenameChecks() abort
|
|||||||
\ 'lean': ['file.lean'],
|
\ 'lean': ['file.lean'],
|
||||||
\ 'ledger': ['file.ldg', 'file.ledger', 'file.journal'],
|
\ 'ledger': ['file.ldg', 'file.ledger', 'file.journal'],
|
||||||
\ 'less': ['file.less'],
|
\ 'less': ['file.less'],
|
||||||
|
\ 'leo': ['file.leo'],
|
||||||
\ 'lex': ['file.lex', 'file.l', 'file.lxx', 'file.l++'],
|
\ 'lex': ['file.lex', 'file.l', 'file.lxx', 'file.l++'],
|
||||||
\ 'lf': ['lfrc'],
|
\ 'lf': ['lfrc'],
|
||||||
\ 'lftp': ['lftp.conf', '.lftprc', 'anylftp/rc', 'lftp/rc', 'some-lftp/rc'],
|
\ 'lftp': ['lftp.conf', '.lftprc', 'anylftp/rc', 'lftp/rc', 'some-lftp/rc'],
|
||||||
|
Loading…
Reference in New Issue
Block a user