Closed engeljh closed 1 year ago
You can try VimEnter
event to set it. Let me know if this does not work. I confirmed that alwayson
works as expected. Here is my configuration:
#--------------------
# autosuggest
var options = {
search: {
pum: true,
fuzzy: false,
hidestatusline: false,
alwayson: false,
},
cmd: {
enable: true,
pum: true,
hidestatusline: false,
fuzzy: false,
onspace: ['buffer', 'find']
}
}
autocmd VimEnter * g:AutoSuggestSetup(options)
I pasted this into my .vimrc and put "vim9" in front of the first command. It doesn't work. I also tried putting "vim9" in front of the second command; that makes no difference.
Thanks for your help, Jon
From: giri @.> Sent: Thursday, September 14, 2023 4:59 AM To: girishji/autosuggest.vim @.> Cc: Engel, Jonathan @.>; Author @.> Subject: Re: [girishji/autosuggest.vim] Changing options (Issue #4)
You can try VimEnter event to set it. Let me know if this does not work. Here is my configuration:
var options = { search: { pum: true, fuzzy: false, hidestatusline: false, alwayson: false, }, cmd: { enable: true, pum: true, hidestatusline: false, fuzzy: false, onspace: ['buffer', 'find'] } } autocmd VimEnter * g:AutoSuggestSetup(options)
— Reply to this email directly, view it on GitHubhttps://github.com/girishji/autosuggest.vim/issues/4#issuecomment-1719044576, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AL3DBE6QI2MNNPWY5FRKJH3X2LBPVANCNFSM6AAAAAA4WP2WWE. You are receiving this because you authored the thread.Message ID: @.***>
I fixed it. Had to put "vim9" in front of "g:AutoSuggestSetup(options)".
Sorry for bothering you.
Jon
From: giri @.> Sent: Thursday, September 14, 2023 4:59 AM To: girishji/autosuggest.vim @.> Cc: Engel, Jonathan @.>; Author @.> Subject: Re: [girishji/autosuggest.vim] Changing options (Issue #4)
You can try VimEnter event to set it. Let me know if this does not work. Here is my configuration:
var options = { search: { pum: true, fuzzy: false, hidestatusline: false, alwayson: false, }, cmd: { enable: true, pum: true, hidestatusline: false, fuzzy: false, onspace: ['buffer', 'find'] } } autocmd VimEnter * g:AutoSuggestSetup(options)
— Reply to this email directly, view it on GitHubhttps://github.com/girishji/autosuggest.vim/issues/4#issuecomment-1719044576, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AL3DBE6QI2MNNPWY5FRKJH3X2LBPVANCNFSM6AAAAAA4WP2WWE. You are receiving this because you authored the thread.Message ID: @.***>
I'm trying to change the search option alwayson to false. The only way I can make it work is to change your original code in the autoload directory. Can you please tell me how to do this in my .vimrc or in an "after" directory? The rest of my .vimrc is in legacy vimscript.
Many thanks.