mirror of
https://github.com/neovim/neovim.git
synced 2026-04-24 00:05:36 +00:00
vim-patch:9.1.0745: filetype: bun and deno history files not recognized
Problem: filetype: bun and deno history files not recognized
Solution: detect '.bun_repl_history' and 'deno_history.txt' as
javascript filetype (Wu, Zhenyu)
closes: vim/vim#15761
8a2aea8a62
Co-authored-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
This commit is contained in:
@@ -1581,7 +1581,9 @@ local filename = {
|
||||
['ipf.conf'] = 'ipfilter',
|
||||
['ipf6.conf'] = 'ipfilter',
|
||||
['ipf.rules'] = 'ipfilter',
|
||||
['.bun_repl_history'] = 'javascript',
|
||||
['.node_repl_history'] = 'javascript',
|
||||
['deno_history.txt'] = 'javascript',
|
||||
['Pipfile.lock'] = 'json',
|
||||
['.firebaserc'] = 'json',
|
||||
['.prettierrc'] = 'json',
|
||||
|
||||
@@ -362,7 +362,7 @@ func s:GetFilenameChecks() abort
|
||||
\ 'janet': ['file.janet'],
|
||||
\ 'java': ['file.java', 'file.jav'],
|
||||
\ 'javacc': ['file.jj', 'file.jjt'],
|
||||
\ 'javascript': ['file.js', 'file.jsm', 'file.javascript', 'file.es', 'file.mjs', 'file.cjs', '.node_repl_history'],
|
||||
\ 'javascript': ['file.js', 'file.jsm', 'file.javascript', 'file.es', 'file.mjs', 'file.cjs', '.node_repl_history', '.bun_repl_history', 'deno_history.txt'],
|
||||
\ 'javascript.glimmer': ['file.gjs'],
|
||||
\ 'javascriptreact': ['file.jsx'],
|
||||
\ 'jess': ['file.clp'],
|
||||
|
||||
Reference in New Issue
Block a user