diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2021-06-09 17:00:24 +0200 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2021-06-09 17:00:24 +0200 |
commit | 7c474e5c9218d870dabba00745220dff5aa671b2 (patch) | |
tree | 0939e06ae13b4145bfb5e2fe98bf3c86ce491c2f /autoload | |
parent | 1a096f0901264629947afb89436019895e5e7ef5 (diff) | |
download | vim-polyglot-7c474e5c9218d870dabba00745220dff5aa671b2.tar.gz vim-polyglot-7c474e5c9218d870dabba00745220dff5aa671b2.zip |
Add OpenSCAD support, closes #702
Diffstat (limited to 'autoload')
-rw-r--r-- | autoload/polyglot/init.vim | 4 | ||||
-rw-r--r-- | autoload/polyglot/sleuth.vim | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/autoload/polyglot/init.vim b/autoload/polyglot/init.vim index 2c76d854..ac3bf8e8 100644 --- a/autoload/polyglot/init.vim +++ b/autoload/polyglot/init.vim @@ -169,6 +169,10 @@ let did_load_filetypes = 1 " DO NOT EDIT CODE BELOW, IT IS GENERATED WITH MAKEFILE +if !has_key(g:polyglot_is_disabled, 'openscad') + au BufNewFile,BufRead *.scad setf openscad +endif + if !has_key(g:polyglot_is_disabled, 'sway') au BufNewFile,BufRead *sway/config setf sway endif diff --git a/autoload/polyglot/sleuth.vim b/autoload/polyglot/sleuth.vim index 1912384c..c8f09297 100644 --- a/autoload/polyglot/sleuth.vim +++ b/autoload/polyglot/sleuth.vim @@ -382,6 +382,7 @@ let s:globs = { \ 'opam': '*.opam,*.opam.template,opam', \ 'opencl': '*.cl,*.opencl', \ 'openroad': '*.or', + \ 'openscad': '*.scad', \ 'opl': '*.[Oo][Pp][Ll]', \ 'ora': '*.ora', \ 'pamconf': '', |