feat: reload key

This commit is contained in:
2026-02-26 14:20:03 +01:00
parent 7a82fe32db
commit 864b678b9e
5 changed files with 43 additions and 8 deletions

View File

@@ -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