You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The command readfile() loads a file as a list of each lines.
Giving it to g:spelunker_white_list_for_user will work.
To write full script, like below:
" If not defined the list, initialize.if!exists('g:spelunker_white_list_for_user')
letg:spelunker_white_list_for_user= []
endif" Load dictionary file." In the dictionary file, write keywords line by line.letg:spelunker_white_list_for_user+=readfile('SOME_DICTIONARY_FILE')
" Set all the keywords into lowercase.callmap(g:spelunker_white_list_for_user, { _, val -> tolower(val) })
" Remove duplicated keywords.callunique(sort(g:spelunker_white_list_for_user))
It would be great if we could manage a custom dictionary of common words we use, like abbreviations or names.
We should be able to, say, put a list of comma-seperated words in a file and have spelunker ignore those words.
The text was updated successfully, but these errors were encountered: