diff options
author | Christian Clason <c.clason@uni-graz.at> | 2024-11-04 20:03:10 +0100 |
---|---|---|
committer | Christian Clason <ch.clason+github@icloud.com> | 2024-11-05 08:31:45 +0100 |
commit | ba40a6dbe3a1c98a9f75e56c7cd08ecd522d27dd (patch) | |
tree | a87ae553dd05e7b9d8cc0d3ea5b83784677be0cc /runtime/ftplugin | |
parent | 65b9499e4a761e4e76e0e1e60cb507c4d6232bd9 (diff) | |
download | rneovim-ba40a6dbe3a1c98a9f75e56c7cd08ecd522d27dd.tar.gz rneovim-ba40a6dbe3a1c98a9f75e56c7cd08ecd522d27dd.tar.bz2 rneovim-ba40a6dbe3a1c98a9f75e56c7cd08ecd522d27dd.zip |
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
https://github.com/vim/vim/commit/93f65a4ab8168c766e4d3794607762b52762ef82
Co-authored-by: Riley Bruins <ribru17@hotmail.com>
Diffstat (limited to 'runtime/ftplugin')
-rw-r--r-- | runtime/ftplugin/leo.vim | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/runtime/ftplugin/leo.vim b/runtime/ftplugin/leo.vim new file mode 100644 index 0000000000..a009c02df4 --- /dev/null +++ b/runtime/ftplugin/leo.vim @@ -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<' |