bugfix: use of funcref in settings
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
" List of denote directories
|
||||
if !exists('g:denote_directories')
|
||||
let g:denote_directories=[]
|
||||
let g:denote_directories = []
|
||||
endif
|
||||
call map(g:denote_directories, {_, d -> fnamemodify(d, ':p')})
|
||||
" If only one directory has been specified, use that as denote directory
|
||||
@@ -12,28 +12,28 @@ call map(g:denote_directories, {_, d -> fnamemodify(d, ':p')})
|
||||
|
||||
" Restrict basic operations to these files
|
||||
if !exists('g:denote_note_file_extensions')
|
||||
let g:denote_note_file_extensions=['md', 'org', 'txt']
|
||||
let g:denote_note_file_extensions = ['md', 'org', 'txt']
|
||||
endif
|
||||
|
||||
" Number of columns used for the title in the location window
|
||||
if !exists('g:denote_loc_title_columns')
|
||||
let g:denote_loc_title_columns=40
|
||||
let g:denote_loc_title_columns = 40
|
||||
endif
|
||||
|
||||
" Default filetype for newly created denote entries
|
||||
if !exists('g:denote_new_ft')
|
||||
let g:denote_new_ft='md'
|
||||
let g:denote_new_ft = 'md'
|
||||
endif
|
||||
|
||||
" Default front-matter type for markdown notes, may be one of 'yaml' or 'toml'
|
||||
if !exists('g:denote_fm_md_type')
|
||||
let g:denote_fm_md_type='yaml'
|
||||
let g:denote_fm_md_type = 'yaml'
|
||||
endif
|
||||
|
||||
" By using the following global variable, the user may specify a custom
|
||||
" function for creating identifiers.
|
||||
if !exists('g:denote_identifier_fun')
|
||||
let g:denote_identifier_fun=''
|
||||
if !exists('g:Denote_identifier_fun')
|
||||
let g:Denote_identifier_fun = function('denote#meta#identifier_generate')
|
||||
endif
|
||||
|
||||
" Transform full path into canonical form WITH trailing '/'
|
||||
|
||||
Reference in New Issue
Block a user