mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
vim-patch:9.0.1503: Luau files are not recognized (#23412)
Problem: Luau files are not recognized.
Solution: Add a patter for Luau files. (Amaan Qureshi, closes vim/vim#12317)
2dcfe9ae1d
Co-authored-by: Amaan Qureshi <amaanq12@gmail.com>
This commit is contained in:
parent
5e31f53457
commit
37dd818722
@ -637,6 +637,7 @@ local extension = {
|
||||
nse = 'lua',
|
||||
rockspec = 'lua',
|
||||
lua = 'lua',
|
||||
luau = 'luau',
|
||||
lrc = 'lyrics',
|
||||
m = function(path, bufnr)
|
||||
return require('vim.filetype.detect').m(bufnr)
|
||||
|
@ -346,6 +346,7 @@ let s:filename_checks = {
|
||||
\ 'lsl': ['file.lsl'],
|
||||
\ 'lss': ['file.lss'],
|
||||
\ 'lua': ['file.lua', 'file.rockspec', 'file.nse', '.luacheckrc', '.busted'],
|
||||
\ 'luau': ['file.luau'],
|
||||
\ 'lynx': ['lynx.cfg'],
|
||||
\ 'lyrics': ['file.lrc'],
|
||||
\ 'm3build': ['m3makefile', 'm3overrides'],
|
||||
|
Loading…
Reference in New Issue
Block a user