On 12/10/2022 9:17 AM, N i c o l a s wrote:
> Hi Marc,
>
>
> - Not it is not OK. E488 when i try to port autoload/tagbar.vim lin386
>
> https://github.com/preservim/tagbar/blob/master/autoload/tagbar.vim
>
> function! s:LoadUserTypeDefs(...) abort
> if a:0 > 0
> let type = a:1
>
> let defdict = {}
> let defdict[type] = g:tagbar_type_{type}
Curly-brace names are not supported in Vim9. This is documented in both
:help vim9-differences
and
:help curly-brace-names
> Le samedi 10 décembre 2022 à 15:02:35 UTC+1, Marc Chantreux a écrit :
>
>> hello,
>>
>>> let defdict[type] = g:tagbar_type_{type}
>>
>> is this ok for you?
>>
>> let type ="grep"
>> exec $"let defdict[type] = g:gitgutter_{type}"
>>
>> regards
>> marc
>>
>
--
--
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/tn29n8%24qqk%241%40ciao.gmane.io.
No comments:
Post a Comment