@@ -50,7 +50,7 @@ function! s:opfunc(type) abort
50
50
endtry
51
51
endfunction
52
52
53
- function ! s: saveRegs (fn, ... )
53
+ function ! s: save_regs (fn, ... )
54
54
let reg_save = @@
55
55
let sel_save = &selection
56
56
let cb_save = &clipboard
@@ -70,7 +70,7 @@ endfunction
70
70
" Format operation
71
71
"
72
72
73
- function ! s: formatopImpl (type ) abort
73
+ function ! s: formatop_impl (type ) abort
74
74
let expr = fireplace#opfunc (a: type )
75
75
" Remove additional newlines from start of expression
76
76
let res = fireplace#message ({' op' : ' format-code' , ' code' : substitute (expr , ' ^\n\+' , ' ' , ' ' )})
@@ -84,7 +84,7 @@ function! s:formatopImpl(type) abort
84
84
endfunction
85
85
86
86
function ! s: formatop (type ) abort
87
- call s: saveRegs (function (' s:formatopImpl ' ), a: type )
87
+ call s: save_regs (function (' s:formatop_impl ' ), a: type )
88
88
endfunction
89
89
90
90
nnoremap <silent> <Plug> CiderFormat :<C-U> set opfunc=<SID> formatop<CR> g@
@@ -108,14 +108,14 @@ nnoremap <silent> <Plug>CiderUndef :<C-U>call <SID>undef()<CR>
108
108
" CleanNs
109
109
"
110
110
111
- function ! s: initRefactorNrepl () abort
111
+ function ! s: init_refactor_nrepl () abort
112
112
if ! exists (' b:refactor_nrepl_loaded' ) && exists (' g:refactor_nrepl_options' )
113
113
let b: refactor_nrepl_loaded = 1
114
114
call fireplace#message ({' op' : ' configure' , ' opts' : g: refactor_nrepl_options })
115
115
endif
116
116
endfunction
117
117
118
- function ! s: cleanNs () abort
118
+ function ! s: clean_ns () abort
119
119
call s: initRefactorNrepl ()
120
120
121
121
" FIXME: Moves cursor
@@ -142,7 +142,7 @@ function! s:cleanNs() abort
142
142
endif
143
143
endfunction
144
144
145
- nnoremap <silent> <Plug> RefactorCleanNs :<C-U> call <SID> cleanNs ()<CR>
145
+ nnoremap <silent> <Plug> RefactorCleanNs :<C-U> call <SID> clean_ns ()<CR>
146
146
147
147
function ! s: set_up () abort
148
148
if get (g: , ' cider_no_maps' ) | return | endif
0 commit comments