diff --git a/nvim/.config/nvim/after/ftplugin/pandoc.vim b/nvim/.config/nvim/after/ftplugin/pandoc.vim new file mode 100644 index 0000000..9a57633 --- /dev/null +++ b/nvim/.config/nvim/after/ftplugin/pandoc.vim @@ -0,0 +1 @@ +:Prose diff --git a/nvim/.config/nvim/plugin/personal/bibcite.vim b/nvim/.config/nvim/after/plugin/bibcite.vim similarity index 100% rename from nvim/.config/nvim/plugin/personal/bibcite.vim rename to nvim/.config/nvim/after/plugin/bibcite.vim diff --git a/nvim/.config/nvim/plugin/after/prose.vim b/nvim/.config/nvim/after/plugin/prose.vim similarity index 73% rename from nvim/.config/nvim/plugin/after/prose.vim rename to nvim/.config/nvim/after/plugin/prose.vim index 80eb5b5..ad7c0d0 100644 --- a/nvim/.config/nvim/plugin/after/prose.vim +++ b/nvim/.config/nvim/after/plugin/prose.vim @@ -1,5 +1,5 @@ " PROSE: function to automatically enables markdown plugins for md & txt files -function! Prose() +function! s:Prose() call plug#load('vim-pencil') call plug#load('goyo.vim') call plug#load('limelight.vim') @@ -14,7 +14,7 @@ endfunction " enable syntax highlighting for codeblocks WITHIN markdown let g:markdown_fenced_languages = ['html', 'python', 'bash=sh', 'javascipt', 'go'] -" call the prose function defined above for any md files -au FileType pandoc,markdown,md,mkd call Prose() -" or invoke it manually by writing :Prose -command! -nargs=0 Prose call Prose() +" invoke it manually by writing :Prose +" or, it will get automatically sourced for certain filetypes in +" after/ftplugin directory +command! -nargs=0 Prose call s:Prose() diff --git a/nvim/.config/nvim/init.vim b/nvim/.config/nvim/init.vim index cbc5d98..b7ff60d 100644 --- a/nvim/.config/nvim/init.vim +++ b/nvim/.config/nvim/init.vim @@ -50,8 +50,8 @@ Plug 'junegunn/fzf.vim' " ultimately the only thing left here should be a Plug 'Shougo/deoplete.nvim' " automatic suggestions, can also perhaps be changed for newer plugs Plug 'deoplete-plugins/deoplete-go', { 'do': 'make'} -Plug 'Shougo/echodoc.vim', { 'on': [] } -Plug 'w0rp/ale', { 'on': [] } " asynchronous linting - might be superseded by lsp or coc.nvim at some point +Plug 'Shougo/echodoc.vim', {} +Plug 'w0rp/ale', {} " asynchronous linting - might be superseded by lsp or coc.nvim at some point " statusline Plug 'vim-airline/vim-airline' Plug 'vim-airline/vim-airline-themes' diff --git a/nvim/.config/nvim/maps.vim b/nvim/.config/nvim/maps.vim index e3ca78c..1c7b5df 100644 --- a/nvim/.config/nvim/maps.vim +++ b/nvim/.config/nvim/maps.vim @@ -10,6 +10,7 @@ " documented " backspace to switch to alternate (last) buffer +" this may have to be adjusted / removed to let wiki.vim use BS for navigation nnoremap " since u undoes, would it not make sense that U redoes? diff --git a/nvim/.config/nvim/plugin/after/vim-pandoc.vim b/nvim/.config/nvim/plugin/vim-pandoc.vim similarity index 97% rename from nvim/.config/nvim/plugin/after/vim-pandoc.vim rename to nvim/.config/nvim/plugin/vim-pandoc.vim index c121d38..0be5c1f 100644 --- a/nvim/.config/nvim/plugin/after/vim-pandoc.vim +++ b/nvim/.config/nvim/plugin/vim-pandoc.vim @@ -20,7 +20,7 @@ let g:pandoc#biblio#use_preview=1 let g:pandoc#completion#bib#mode='citeproc' let g:pandoc#folding#fold_yaml=1 let g:pandoc#folding#fastfolds=1 -" let g:pandoc#folding#level=2 +" let g:pandoc#folding#level=1 let g:pandoc#spell#default_langs=["en_us", "de_de"] let g:pandoc#hypertext#ausosave_on_edit_open_link=1 let g:pandoc#hypertext#create_if_no_alternates_exists=1