Skip to content

Commit 3ce0933

Browse files
ftdetect: set *.bb files as clojure filetype #49
Simple vim statement to set Babashka *.bb files as the Clojure filetype Add inclusive pattern for ftdetect to git ignore resolve: #49
1 parent f625503 commit 3ce0933

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
# ------------------------
2121
# Include Lua project & config
2222
!after/
23+
!ftdetect/
2324
!lua/
2425
!snippets/
2526
!.neoconf.json

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
- community: add emoji completion blink-cmp-emoji
77
- community: add advanced surround nvim-surround
88
- community: add search & replace grug-far-nvim
9+
- ftdetect: set *.bb files as clojure filetype #49
910

1011
## Changed
1112
- practicalli: revert to upstream other.nvim

ftdetect/bb.vim

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
" Quick hack to set Babashka files as Clojure filetype
2+
" https://neovim.io/doc/user/filetype.html#ftdetect
3+
"
4+
" Alternative solutions welcome
5+
"
6+
" TODO: consider a lua solution
7+
" TODO: contribute bb support for clojure to Neovim (vim)
8+
9+
au BufRead,BufNewFile *.bb set filetype=clojure

0 commit comments

Comments
 (0)