diff options
author | Christian Clason <c.clason@uni-graz.at> | 2023-03-29 10:23:52 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-29 10:23:52 +0200 |
commit | 196f69909db9e44477731cd805dac119a54725c2 (patch) | |
tree | e5267e9ad8936b137da85f2705bd14ac020b839a | |
parent | b7748662ed5b06c12a74560690b728fdf770666f (diff) | |
download | rneovim-196f69909db9e44477731cd805dac119a54725c2.tar.gz rneovim-196f69909db9e44477731cd805dac119a54725c2.tar.bz2 rneovim-196f69909db9e44477731cd805dac119a54725c2.zip |
vim-patch:9.0.1430: Livebook files are not recognized (#22808)
Problem: Livebook files are not recognized.
Solution: Add a pattern for Livebook files. (Mathias Jean Johansen,
closes vim/vim#12203)
https://github.com/vim/vim/commit/64002035178ac3e0d9ab7269d1bf06c6ede5a854
Co-authored-by: Mathias Jean Johansen <mathias@mjj.io>
-rw-r--r-- | runtime/lua/vim/filetype.lua | 1 | ||||
-rw-r--r-- | test/old/testdir/test_filetype.vim | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/runtime/lua/vim/filetype.lua b/runtime/lua/vim/filetype.lua index 740304df15..87439f9f0c 100644 --- a/runtime/lua/vim/filetype.lua +++ b/runtime/lua/vim/filetype.lua @@ -615,6 +615,7 @@ local extension = { asd = 'lisp', lt = 'lite', lite = 'lite', + livemd = 'livebook', lgt = 'logtalk', lotos = 'lotos', lot = 'lotos', diff --git a/test/old/testdir/test_filetype.vim b/test/old/testdir/test_filetype.vim index 29eb0c599d..23adff3d3d 100644 --- a/test/old/testdir/test_filetype.vim +++ b/test/old/testdir/test_filetype.vim @@ -338,6 +338,7 @@ let s:filename_checks = { \ 'lite': ['file.lite', 'file.lt'], \ 'litestep': ['/LiteStep/any/file.rc', 'any/LiteStep/any/file.rc'], \ 'logcheck': ['/etc/logcheck/file.d-some/file', '/etc/logcheck/file.d/file', 'any/etc/logcheck/file.d-some/file', 'any/etc/logcheck/file.d/file'], + \ 'livebook': ['file.livemd'], \ 'loginaccess': ['/etc/login.access', 'any/etc/login.access'], \ 'logindefs': ['/etc/login.defs', 'any/etc/login.defs'], \ 'logtalk': ['file.lgt'], |