Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Detect .bb and .clj_kondo file extension as Clojure #42

Merged
merged 3 commits into from
Nov 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions after/ftdetect/clojure.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
if get(g:, 'clojure_detect_unofficial_exts', 1)
autocmd BufNewFile,BufRead {build,profile}.boot,*.bb,*.clj_kondo setlocal filetype=clojure
endif
2 changes: 1 addition & 1 deletion ftdetect/clojure.vim
Original file line number Diff line number Diff line change
@@ -1 +1 @@
autocmd BufNewFile,BufRead *.clj,*.cljs,*.edn,*.cljx,*.cljc,{build,profile}.boot setlocal filetype=clojure
autocmd BufNewFile,BufRead *.clj,*.cljs,*.edn,*.cljx,*.cljc setlocal filetype=clojure
5 changes: 3 additions & 2 deletions ftplugin/clojure.vim
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,10 @@ endif
" Filter files in the browse dialog
if (has("gui_win32") || has("gui_gtk")) && !exists("b:browsefilter")
let b:browsefilter = "All Files\t*\n" .
\ "Clojure Files\t*.clj;*.cljc;*.cljs;*.cljx\n" .
\ "Clojure Files\t*.clj;*.cljc;*.cljs;*.cljx;*.bb;*.clj_kondo\n" .
\ "EDN Files\t*.edn\n" .
\ "Java Files\t*.java\n"
\ "Java Files\t*.java\n" .
\ "XML Files\t*.xml\n"
let b:undo_ftplugin .= ' | unlet! b:browsefilter'
endif

Expand Down
Loading