Windows configuration of vim9script ctags extension
1/ In your $MYVIMRC ~_vimrc (here vim9script) just put these lines :
g:tagbar_type_vim = {
kinds: [
\ 'a:autocommand groups:1',
\ 'c:commands:0:0',
\ 'e:exported defs',
\ 'f:functions',
\ 'g:global variables',
\ 'K:constants',
\ 'm:maps:1:0',
\ 'n:vimball filenames',
\ 'v:variables:1:0',
\ ],
}
kinds: [
\ 'a:autocommand groups:1',
\ 'c:commands:0:0',
\ 'e:exported defs',
\ 'f:functions',
\ 'g:global variables',
\ 'K:constants',
\ 'm:maps:1:0',
\ 'n:vimball filenames',
\ 'v:variables:1:0',
\ ],
}
2/ In your $vimruntime ~ vim90 folder where there is ctags.exe v5.9 just add file in folder .ctags.d/vim.ctags
--kinddef-vim=e,export,Vim 9 exported defs
--kinddef-vim=g,global,Vim 9 global variables
--kinddef-vim=K,const,Vim 9 constants
--regex-vim=/^\s*export\s+def\s+([^(]+)/\1/e,export/
--regex-vim=/^\s*(g:\w+)\b/\1/g,global/
--regex-vim=/^(\s*export\s+)?const\s+(\w+)/\2/K,const/
--regex-vim=/^(\s*export\s+)?final\s+(\w+)/\2/K,const/
--kinddef-vim=g,global,Vim 9 global variables
--kinddef-vim=K,const,Vim 9 constants
--regex-vim=/^\s*export\s+def\s+([^(]+)/\1/e,export/
--regex-vim=/^\s*(g:\w+)\b/\1/g,global/
--regex-vim=/^(\s*export\s+)?const\s+(\w+)/\2/K,const/
--regex-vim=/^(\s*export\s+)?final\s+(\w+)/\2/K,const/
and see the light : all exported defs vim9script functions are now displayed ! :) :)
THANK YOU Life !!
Hope this help someone.
Nicolas
Le jeudi 11 août 2022 à 19:55:48 UTC+2, Lifepillar a écrit :
On 2022-08-11, N V <niva...@gmail.com> wrote:
> So I put it in *somewhereOvertherainbow\*Vim\vim90\.ctags.d
If you put Ctags configuration there, does `ctags --list-kinds=vim`
still use it?
> But it seems to not runnning well : does not displays vim9 exported
> functions
I'm afraid I can't help you with Windows-specific configuration, as I'm
not using Windows.
Life.
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/1f634f21-9590-4a4c-92c8-227d70244b1fn%40googlegroups.com.
No comments:
Post a Comment