fixed ft-specifics for new files

This commit is contained in:
2026-02-25 15:43:43 +01:00
parent caf21ab060
commit e8ff0daf16
2 changed files with 1 additions and 2 deletions

View File

@@ -23,7 +23,7 @@ function denote#commands#load()
" Register auto commands
autocmd BufReadPost quickfix call denote#ft#qf()
let l:aupat = map(copy(g:denote_note_file_extensions), {_, v -> '*.' .. v})->join(',')
exe 'autocmd BufReadPost ' .. l:aupat .. ' call denote#ft#denote()'
exe 'autocmd BufReadPost,BufNewFile ' .. l:aupat .. ' call denote#ft#denote()'
" Useful key mappings
" nnoremap <silent> <Plug>DenoteList :DenoteSearch<CR>:lclose<CR>:lopen<CR>:resize 20<CR>