Skip to content

Commit

Permalink
Merge pull request #392 from liquidz/dev [skip ci]
Browse files Browse the repository at this point in the history
3.8.3
  • Loading branch information
liquidz authored Mar 19, 2022
2 parents 338395b + c55e1a3 commit faec513
Show file tree
Hide file tree
Showing 10 changed files with 32 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ jobs:
- uses: actions/checkout@v3
- uses: DeLaGuardo/setup-clj-kondo@master
with:
version: '2022.03.04'
version: '2022.03.09'
- run: clj-kondo --parallel --lint clj:test/clj --config '{:output {:pattern "::{{level}} file={{filename}},line={{row}},col={{col}}::{{message}}"}}'
12 changes: 12 additions & 0 deletions CHANGELOG.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,18 @@ All notable changes to this project will be documented in this file. This change

== Unreleased (dev)

== 3.8.3 (2022-03-20)
// {{{
=== Added
* https://github.com/liquidz/vim-iced/issues/389[#389]: Added `g:iced#eval#popup_highlight` option to change the highlight setting for popup to display evaluated result.
** https://liquidz.github.io/vim-iced/vim-iced.html#g%3Aiced%23eval%23popup_highlight

=== Changed
* https://github.com/liquidz/vim-iced/pull/391[#391]: Added document for disabling paredit.
** https://liquidz.github.io/vim-iced/#_disabling_paredit
* Bumped refactor-nrepl to 3.5.2.
// }}}

== 3.8.2 (2022-03-06)
// {{{
=== Changed
Expand Down
2 changes: 1 addition & 1 deletion autoload/iced/nrepl/eval.vim
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ function! iced#nrepl#eval#out(resp, ...) abort
endif

let virtual_text_opt = copy(get(opt, 'virtual_text', {}))
let virtual_text_opt['highlight'] = 'Comment'
let virtual_text_opt['highlight'] = g:iced#eval#popup_highlight
if g:iced#eval#keep_inline_result
let virtual_text_opt['auto_clear'] = v:false
else
Expand Down
1 change: 1 addition & 0 deletions autoload/iced/repl.vim
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ let g:iced#eval#inside_comment = get(g:, 'iced#eval#inside_comment', v:true)
let g:iced#eval#mark_at_last = get(g:, 'iced#eval#mark_at_last', '1')
let g:iced#eval#keep_inline_result = get(g:, 'iced#eval#keep_inline_result', v:false)
let g:iced#eval#values_to_skip_storing_register = get(g:, 'iced#eval#values_to_skip_storing_register', ['nil', 'true', 'false'])
let g:iced#eval#popup_highlight = get(g:, 'iced#eval#popup_highlight', 'Comment')
let g:iced#repl#babashka_repl_type = get(g:, 'iced#repl#babashka_repl_type', 'nrepl')
let g:iced#repl#ignore_connected = get(g:, 'iced#repl#ignore_connected', v:false)

Expand Down
3 changes: 2 additions & 1 deletion autoload/iced/socket_repl.vim
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ function! s:default_callback(resp) abort
echo iced#util#shorten(value)
call iced#system#get('virtual_text').set(
\ printf('=> %s', value),
\ {'highlight': 'Comment', 'auto_clear': v:true})
\ {'highlight': g:iced#eval#popup_highlight,
\ 'auto_clear': v:true})
endif
endfunction

Expand Down
2 changes: 1 addition & 1 deletion bin/iced
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ SCRIPT_DIR=$(cd $(dirname $0); pwd)
PROJECT_DIR=$(cd $SCRIPT_DIR; cd ..; pwd)
VERSION=$(grep 'Version: ' ${SCRIPT_DIR}/../doc/vim-iced.txt | cut -d' ' -f2)

BASE_DEPENDENCIES='nrepl/nrepl:0.9.0 refactor-nrepl/refactor-nrepl:3.4.0 cider/cider-nrepl:0.28.3 com.github.liquidz/iced-nrepl:1.2.8'
BASE_DEPENDENCIES='nrepl/nrepl:0.9.0 refactor-nrepl/refactor-nrepl:3.5.2 cider/cider-nrepl:0.28.3 com.github.liquidz/iced-nrepl:1.2.8'
BASE_MIDDLEWARES='cider.nrepl/wrap-classpath cider.nrepl/wrap-clojuredocs cider.nrepl/wrap-complete cider.nrepl/wrap-debug cider.nrepl/wrap-format cider.nrepl/wrap-info cider.nrepl/wrap-macroexpand cider.nrepl/wrap-ns cider.nrepl/wrap-out cider.nrepl/wrap-refresh cider.nrepl/wrap-spec cider.nrepl/wrap-test cider.nrepl/wrap-trace cider.nrepl/wrap-undef cider.nrepl/wrap-xref refactor-nrepl.middleware/wrap-refactor iced.nrepl/wrap-iced'

CLJS_DEPENDENCIES='cider/piggieback:0.5.3'
Expand Down
2 changes: 1 addition & 1 deletion deps.edn
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{:paths ["clj/repl"]
:deps {nrepl/nrepl {:mvn/version "0.9.0"}
refactor-nrepl/refactor-nrepl {:mvn/version "3.4.0"}
refactor-nrepl/refactor-nrepl {:mvn/version "3.5.2"}
cider/cider-nrepl {:mvn/version "0.28.3"}
com.github.liquidz/iced-nrepl {:mvn/version "1.2.8"}}
:__middlewares__
Expand Down
4 changes: 3 additions & 1 deletion doc/pages/evaluation.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,12 @@ TIP: See also <<eval_inside_comment>>
=== Results [[evaluation_results]]

The evaluation result is echoed on command-line and displayed in a popup at the end of line.
However, the displayed result is only the returned value, so for example, the contents output by `println` are not diplayed.
However, the displayed result is only the returned value, so for example, the contents output by `println` are not displayed.

The contents output to standard output are displayed on the <<stdout_buffer>>.

The highlight setting for popup can be modified by {help_html}#g%3Aiced%23eval%23popup_highlight[g:iced#eval#popup_highlight].

=== Marks [[evaluation_marks]]

vim-iced also provides ways to evaluate forms by Vim's https://vim-jp.org/vimdoc-en/motion.html#mark-motions[mark].
Expand Down
13 changes: 9 additions & 4 deletions doc/vim-iced.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
*vim-iced.txt* Clojure interactive development environment for Vim8/Neovim

Version: 3.8.2
Version: 3.8.3
Author : Masashi Iizuka <[email protected]>
License: MIT LICENSE

Expand Down Expand Up @@ -156,7 +156,7 @@ LEININGEN~
cider.nrepl/wrap-undef
cider.nrepl/wrap-xref
iced.nrepl/wrap-iced]}
:plugins [[refactor-nrepl "3.4.0"]]}}
:plugins [[refactor-nrepl "3.5.2"]]}}
<

*vim-iced-manual-boot*
Expand All @@ -167,7 +167,7 @@ BOOT~
(require (quote boot.repl))
(swap! boot.repl/*default-dependencies* concat
'[[refactor-nrepl "3.4.0"]
'[[refactor-nrepl "3.5.2"]
[cider/cider-nrepl "0.28.3"]
[com.github.liquidz/iced-nrepl "1.2.8"]])
Expand Down Expand Up @@ -195,7 +195,7 @@ SHADOW-CLJS~
shadow-cljs.edn
>
{
:dependencies [[refactor-nrepl "3.4.0"]
:dependencies [[refactor-nrepl "3.5.2"]
[cider/cider-nrepl "0.28.3"]
[com.github.liquidz/iced-nrepl "1.2.8"]]
}
Expand Down Expand Up @@ -1894,6 +1894,11 @@ g:iced#eval#mark_at_last
g:iced#eval#values_to_skip_storing_register
Evaluated values not to store to numbered registers.
Default value is `['nil', 'true', 'false']`.

*g:iced#eval#popup_highlight*
g:iced#eval#popup_highlight
The highlight setting for popup to display evaluated result.
Default value is `'Comment'`.

*g:iced#buffer#error#height*
g:iced#buffer#error#height
Expand Down
2 changes: 1 addition & 1 deletion ftplugin/clojure.vim
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ if exists('g:loaded_vim_iced')
finish
endif
let g:loaded_vim_iced = 1
let g:vim_iced_version = 30802
let g:vim_iced_version = 30803
let g:vim_iced_home = expand('<sfile>:p:h:h')
" NOTE: https://github.com/vim/vim/commit/162b71479bd4dcdb3a2ef9198a1444f6f99e6843
" Add functions for defining and placing signs.
Expand Down

0 comments on commit faec513

Please sign in to comment.