diff --git a/after/ftdetect/clojure.vim b/after/ftdetect/clojure.vim new file mode 100644 index 0000000..8eb51fa --- /dev/null +++ b/after/ftdetect/clojure.vim @@ -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 diff --git a/ftdetect/clojure.vim b/ftdetect/clojure.vim index 687739d..5db03e4 100644 --- a/ftdetect/clojure.vim +++ b/ftdetect/clojure.vim @@ -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 diff --git a/ftplugin/clojure.vim b/ftplugin/clojure.vim index 009977a..b4487cd 100644 --- a/ftplugin/clojure.vim +++ b/ftplugin/clojure.vim @@ -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