Reorganize vim plugin settings
Setting everything during PlugLoad function caused some plugins to misbehave. Plugins are now loaded by Plug and their settings can be either set with a file in the plugin directory (this mimicks the old way of setting plugin up during load) or in after/ directory, which sets options *after* everything has loaded.
This commit is contained in:
parent
6b79eeef5d
commit
756e45e037
29 changed files with 305 additions and 274 deletions
12
nvim/.config/nvim/plugin/wiki.vim
Normal file
12
nvim/.config/nvim/plugin/wiki.vim
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
" PLUGIN: wiki.vim
|
||||
if $WIKIROOT ==? ""
|
||||
let g:wiki_root = expand('~/documents/notes')
|
||||
else
|
||||
let g:wiki_root = $WIKIROOT
|
||||
endif
|
||||
" filetypes to automatically enable the plugin for, seems to take file endings
|
||||
" rather than vim ft
|
||||
let g:wiki_filetypes = ['md', 'mkd', 'markdown', 'wiki']
|
||||
let g:wiki_link_extension = '.md'
|
||||
let g:wiki_link_target_type = 'md'
|
||||
let g:wiki_mappings_use_defaults = 1
|
||||
Loading…
Add table
Add a link
Reference in a new issue