Saturday, December 10, 2022

Re: vim9script userdef

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}
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/7b390567-e7bb-433e-ac57-4b2de418c873n%40googlegroups.com.

No comments:

Post a Comment