Skip to content

Commit ea53176

Browse files
committed
Do not detect unofficial file extensions when embedded into Vim
Since BitBake already claimed the `.bb` file extension before Babashka, we cannot override it in upstream Vim, hence we register an optional `after` ftdetect plugin for various unofficial Clojure file extensions. I'm not a fan of using `after` for this, so I may change it at a later date.
1 parent 948c70a commit ea53176

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

after/ftdetect/clojure.vim

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
if get(g:, 'clojure_detect_unofficial_exts', 1)
2+
autocmd BufNewFile,BufRead {build,profile}.boot,*.bb,*.clj_kondo setlocal filetype=clojure
3+
endif

ftdetect/clojure.vim

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
autocmd BufNewFile,BufRead *.clj,*.cljs,*.edn,*.cljx,*.cljc,{build,profile}.boot,*.bb,*.clj_kondo setlocal filetype=clojure
1+
autocmd BufNewFile,BufRead *.clj,*.cljs,*.edn,*.cljx,*.cljc setlocal filetype=clojure

0 commit comments

Comments
 (0)