Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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‎

Lines changed: 3 additions & 0 deletions
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‎

Lines changed: 1 addition & 1 deletion
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)

AltStyle によって変換されたページ (->オリジナル) /