Skip to content

Commit 036da0e

Browse files
committed
Add ClojureREPL syntax for the log buffer
1 parent bf8a49f commit 036da0e

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

src/socket_repl/socket_repl_plugin.clj

+1-1
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@
153153
(when-not rlog-buffer-visible?
154154
(nvim/vim-command
155155
nvim
156-
(format "%s | nnoremap <buffer> q :q<cr> | :let b:rlog=1 | :call termopen('tail -f %s')"
156+
(format "%s | nnoremap <buffer> q :q<cr> | :let b:rlog=1 | :call termopen('tail -f %s') | :set ft=clojurerepl"
157157
buffer-cmd file))
158158
(nvim/vim-set-current-window nvim original-window)))
159159
;; Don't return a core.async channel, else msgpack will fail to

syntax/clojurerepl.vim

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
if exists("b:current_syntax")
2+
finish
3+
endif
4+
5+
runtime! syntax/clojure.vim
6+
7+
syntax match clojurePrompt "user=> "
8+
9+
highlight default link clojurePrompt Identifier

0 commit comments

Comments
 (0)