Skip to content

Commit 86e6279

Browse files
committed
Need to delay appending lispwords
We have to wait until vim-clojure-static's clojure ftplugin is done, since it clobbers lispwords.
1 parent 5f9e56c commit 86e6279

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.vimrc

+2-3
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,6 @@ nnoremap <LocalLeader>st :call <SID>ToggleWhitespaceDeletion(1)<cr>
108108
nnoremap <LocalLeader>sd :%s/\v\s+$//e<cr>
109109
nnoremap <LocalLeader>sl :autocmd BufWritePre *<CR>
110110
111-
autocmd FileType clojure setlocal lispwords+=describe,it,context,around
112-
autocmd FileType clojure setlocal wildignore+=target/**/*
113-
114111
augroup filetype_groovy
115112
autocmd!
116113
autocmd BufNewFile,BufRead *.gradle set filetype=groovy
@@ -130,6 +127,8 @@ augroup filetype_clojure
130127
autocmd BufNewFile,BufRead *.cljs set filetype=clojure
131128
autocmd BufNewFile,BufRead *.edn set filetype=clojure
132129
autocmd BufNewFile,BufRead *.cljx set filetype=clojure
130+
autocmd BufNewFile,BufRead *.clj set filetype=clojure
131+
autocmd FileType clojure set wildignore+=target/**/*
133132
autocmd FileType clojure nnoremap <buffer> <localleader>ns1 v%:s/\(\w\)\ \{2,}/\1\ /e<esc>
134133
autocmd FileType clojure :AddTabularPattern! ns_separator /\(\ \)\@<=\(\(:as\)\|\(:refer\)\|\(:only\)\|\(:exclude\)\).*$
135134
autocmd FileType clojure nnoremap <buffer> <localleader>ns2 v%:Tabularize ns_separator<cr>

after/ftplugin/clojure.vim

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
autocmd FileType clojure setlocal lispwords+=describe,it,context,around
2+

0 commit comments

Comments
 (0)