commit aa8f2b0e96fadea93df2265f6d18693e600d31a2 parent 3c6db1d297553b4714f20ab71327942e4434a339 Author: Oscar Benedito <oscar@oscarbenedito.com> Date: Sun, 30 Jan 2022 19:34:03 +0100 Move vimwiki shortcuts and autocmds to ftplugin Diffstat:
A | .config/nvim/ftplugin/vimwiki.vim | | | 6 | ++++++ |
M | .config/nvim/lua/plugins.lua | | | 11 | ----------- |
2 files changed, 6 insertions(+), 11 deletions(-)
diff --git a/.config/nvim/ftplugin/vimwiki.vim b/.config/nvim/ftplugin/vimwiki.vim @@ -0,0 +1,6 @@ +nnoremap <buffer> <Leader>wha <Cmd>VimwikiAll2HTML<CR> + +augroup ftplugin_vimwiki + autocmd! + autocmd BufWritePost <buffer> silent <Cmd>Vimwiki2HTML +augroup END diff --git a/.config/nvim/lua/plugins.lua b/.config/nvim/lua/plugins.lua @@ -37,17 +37,6 @@ end do -- vimwiki - vim.cmd "nmap <Leader>t <Plug>VimwikiVSplitLink" - vim.cmd "nnoremap <Leader>wha <Cmd>VimwikiAll2HTML<CR>" - - vim.cmd [[ - augroup paq_vimwiki - autocmd! - autocmd FileType vimwiki - \ autocmd! paq_vimwiki BufWritePost <buffer> silent <Cmd>Vimwiki2HTML - augroup END - ]] - vim.g.vimwiki_global_ext = 0 vim.g.vimwiki_folding = "custom"