[nvim] Add the mediawiki plugin and its config

This commit is contained in:
Alyxia Sother 2023-05-26 16:42:13 +02:00
parent 87daf79018
commit 5266a98c2b
No known key found for this signature in database
GPG Key ID: 01E16C4E775A37E4
2 changed files with 23 additions and 0 deletions

View File

@ -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
View 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,
\ },
\ }