mirror of
https://github.com/keanuplayz/dotfiles.git
synced 2024-08-15 02:33:12 +00:00
[nvim] Add the mediawiki plugin and its config
This commit is contained in:
parent
87daf79018
commit
5266a98c2b
2 changed files with 23 additions and 0 deletions
|
@ -39,6 +39,7 @@ let s:plug = funcref('dotfiles#plugman#register')
|
|||
call s:plug('luke-gru/vim-riml')
|
||||
call s:plug('guns/vim-sexp')
|
||||
call s:plug('vim-scripts/newlisp')
|
||||
call s:plug('m-pilia/vim-mediawiki')
|
||||
call s:plug('noahfrederick/vim-laravel') " dependencies {{{
|
||||
call s:plug('noahfrederick/vim-composer')
|
||||
call s:plug('tpope/vim-projectionist')
|
||||
|
|
22
nvim/plugin/mediawiki.vim
Normal file
22
nvim/plugin/mediawiki.vim
Normal file
|
@ -0,0 +1,22 @@
|
|||
let g:vim_mediawiki_site = 'wiki.c2dl.info'
|
||||
if has('macunix')
|
||||
let g:vim_mediawiki_browser_command = 'open \r'
|
||||
else
|
||||
let g:vim_mediawiki_browser_command = 'xdg-open \r'
|
||||
endif
|
||||
let g:vim_mediawiki_completion_prefix_length = 5
|
||||
let g:vim_mediawiki_completion_limit = 5
|
||||
let g:vim_mediawiki_completion_namespaces = {
|
||||
\ 'default': {
|
||||
\ '[[': 0,
|
||||
\ '{{': 10,
|
||||
\ '[[File:': 6,
|
||||
\ '[[Category:': 14,
|
||||
\ },
|
||||
\ 'wiki.c2dl.info': {
|
||||
\ '[[': 0,
|
||||
\ '{{': 10,
|
||||
\ '[[File:': 6,
|
||||
\ '[[Category:': 14,
|
||||
\ },
|
||||
\ }
|
Loading…
Reference in a new issue