Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 961a7da

Browse filesBrowse files
committed
Name functions consistently
1 parent 978b557 commit 961a7da
Copy full SHA for 961a7da

File tree

Expand file treeCollapse file tree

1 file changed

+6
-6
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+6
-6
lines changed

‎plugin/cider.vim

Copy file name to clipboardExpand all lines: plugin/cider.vim
+6-6Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ function! s:opfunc(type) abort
5050
endtry
5151
endfunction
5252

53-
function! s:saveRegs(fn, ...)
53+
function! s:save_regs(fn, ...)
5454
let reg_save = @@
5555
let sel_save = &selection
5656
let cb_save = &clipboard
@@ -70,7 +70,7 @@ endfunction
7070
" Format operation
7171
"
7272

73-
function! s:formatopImpl(type) abort
73+
function! s:formatop_impl(type) abort
7474
let expr = fireplace#opfunc(a:type)
7575
" Remove additional newlines from start of expression
7676
let res = fireplace#message({'op': 'format-code', 'code': substitute(expr, '^\n\+', '', '')})
@@ -84,7 +84,7 @@ function! s:formatopImpl(type) abort
8484
endfunction
8585

8686
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)
8888
endfunction
8989

9090
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>
108108
" CleanNs
109109
"
110110

111-
function! s:initRefactorNrepl() abort
111+
function! s:init_refactor_nrepl() abort
112112
if !exists('b:refactor_nrepl_loaded') && exists('g:refactor_nrepl_options')
113113
let b:refactor_nrepl_loaded = 1
114114
call fireplace#message({'op': 'configure', 'opts': g:refactor_nrepl_options})
115115
endif
116116
endfunction
117117

118-
function! s:cleanNs() abort
118+
function! s:clean_ns() abort
119119
call s:initRefactorNrepl()
120120

121121
" FIXME: Moves cursor
@@ -142,7 +142,7 @@ function! s:cleanNs() abort
142142
endif
143143
endfunction
144144

145-
nnoremap <silent> <Plug>RefactorCleanNs :<C-U>call <SID>cleanNs()<CR>
145+
nnoremap <silent> <Plug>RefactorCleanNs :<C-U>call <SID>clean_ns()<CR>
146146
147147
function! s:set_up() abort
148148
if get(g:, 'cider_no_maps') | return | endif

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.