aboutsummaryrefslogtreecommitdiff
path: root/runtime/ftplugin
diff options
context:
space:
mode:
authorLewis Russell <lewis6991@gmail.com>2022-09-02 15:20:29 +0100
committerGitHub <noreply@github.com>2022-09-02 15:20:29 +0100
commit2afcdbd63a5b0cbeaad9d83b096a3af5201c67a9 (patch)
treea5e44f3dba1287c398af66673fa926e4841c5343 /runtime/ftplugin
parente085d0be31c68921769c6c437920a3346caec69b (diff)
downloadrneovim-2afcdbd63a5b0cbeaad9d83b096a3af5201c67a9.tar.gz
rneovim-2afcdbd63a5b0cbeaad9d83b096a3af5201c67a9.tar.bz2
rneovim-2afcdbd63a5b0cbeaad9d83b096a3af5201c67a9.zip
feat(Man): port to Lua (#19912)
Co-authored-by: zeertzjq <zeertzjq@outlook.com>
Diffstat (limited to 'runtime/ftplugin')
-rw-r--r--runtime/ftplugin/man.vim4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/ftplugin/man.vim b/runtime/ftplugin/man.vim
index d7a08a9941..277ce3c0b3 100644
--- a/runtime/ftplugin/man.vim
+++ b/runtime/ftplugin/man.vim
@@ -17,12 +17,12 @@ setlocal iskeyword=@-@,:,a-z,A-Z,48-57,_,.,-,(,)
setlocal nonumber norelativenumber
setlocal foldcolumn=0 colorcolumn=0 nolist nofoldenable
-setlocal tagfunc=man#goto_tag
+setlocal tagfunc=v:lua.require'man'.goto_tag
if !exists('g:no_plugin_maps') && !exists('g:no_man_maps')
nnoremap <silent> <buffer> j gj
nnoremap <silent> <buffer> k gk
- nnoremap <silent> <buffer> gO :call man#show_toc()<CR>
+ nnoremap <silent> <buffer> gO :lua require'man'.show_toc()<CR>
nnoremap <silent> <buffer> <2-LeftMouse> :Man<CR>
if get(b:, 'pager')
nnoremap <silent> <buffer> <nowait> q :lclose<CR><C-W>q