Navigation Menu

Skip to content

Commit

Permalink
Clarify error message and README for b:slime_cell_delimiter
Browse files Browse the repository at this point in the history
  • Loading branch information
jpalardy committed Aug 6, 2020
1 parent 8484529 commit 45a4fe4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Expand Up @@ -294,6 +294,8 @@ If you want to send blocks of code between two delimiters, emulating the cell-li
let g:slime_cell_delimiter = "#%%"
nmap <leader>s <Plug>SlimeSendCell

⚠️ it's recommended to use `b:slime_cell_delimiter` and set the variable in `ftplugin` for each relevant filetype.


Advanced Configuration: Overrides
---------------------------------
Expand Down
2 changes: 1 addition & 1 deletion autoload/slime.vim
Expand Up @@ -354,7 +354,7 @@ function! slime#send_cell() abort
elseif exists("g:slime_cell_delimiter")
let cell_delimiter = g:slime_cell_delimiter
else
echoerr "g:slime_cell_delimiter is empty"
echoerr "b:slime_cell_delimeter is not defined"
return
endif

Expand Down

0 comments on commit 45a4fe4

Please sign in to comment.