feat: reload key
This commit is contained in:
@@ -28,7 +28,8 @@ endfunction
|
||||
" This will be called for every location and quickfix, when data is loaded into
|
||||
" the list. This does nothing for such lists that are note 'denote' lists.
|
||||
function denote#ft#qf()
|
||||
if getloclist(0, {'context': 1})['context'] != 'denote'
|
||||
let l:context = getloclist(0, {'context': 1})['context']
|
||||
if type(l:context) != v:t_dict || !has_key(l:context, 'denote')
|
||||
" Clear settings
|
||||
set spell<
|
||||
nmapclear <buffer>
|
||||
@@ -36,4 +37,11 @@ function denote#ft#qf()
|
||||
endif
|
||||
setlocal nospell
|
||||
nnoremap <buffer> q :lclose<CR>
|
||||
if has_key(l:context, 'gfun')
|
||||
nnoremap <buffer> <silent> r :call denote#loclist#reload()<CR>
|
||||
endif
|
||||
" Denote-list specific configuration
|
||||
" if l:context == 'denote-list'
|
||||
" call denote#commands#loadll()
|
||||
" endif
|
||||
endfunction
|
||||
|
||||
Reference in New Issue
Block a user