Last active
February 13, 2022 18:46
-
-
Save iamFIREcracker/7ada8ebf64d11a63e36bee4cea6a51f0 to your computer and use it in GitHub Desktop.
Revisions
-
iamFIREcracker revised this gist
Feb 13, 2022 . No changes.There are no files selected for viewing
-
iamFIREcracker renamed this gist
Feb 13, 2022 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
iamFIREcracker created this gist
Feb 13, 2022 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,28 @@ augroup vlime_hilight_curr_expr autocmd! if empty(prop_type_get('lisp_curr_expr')) call prop_type_add('lisp_curr_expr', {'highlight': 'LispCurrExpr'}) endif hi link LispCurrExpr MatchParen function! s:HilightCurrExpr() abort call prop_remove({'type': 'lisp_curr_expr', 'all': v:true}) let expr = vlime#ui#CurExpr(1) if expr[0] == '' || expr[1][0] == 0 return endif let [line1, col1] = expr[1] let [line2, col2] = expr[2] let l:options = { \ 'type': 'lisp_curr_expr', \ 'end_lnum': line2, \ 'end_col': col2, \ } call prop_add(line1, col1, l:options) endfunction autocmd CursorMoved,CursorMovedI <buffer> call s:HilightCurrExpr() augroup end