-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Description
I'm using nvchad + tabby-nvim and realize a problem while open multiple buffers:
open nvim with first buffer opened:
when open new buffer:
After checking around I see that, the function tabby#inline_completion#keybindings#Setup
is just initilized when open fisrt buffer.
function! tabby#inline_completion#Install()
call tabby#inline_completion#events#Install()
call tabby#inline_completion#keybindings#Setup()
call tabby#inline_completion#virtual_text#Setup()
endfunction
sulution here is create an autocmd
function! tabby#inline_completion#Setup()
augroup tabby_inline_completion_events
autocmd!
autocmd User tabby_lsp_on_buffer_attached call tabby#inline_completion#Install()
augroup end
autocmd BufNewFile,BufRead * call tabby#inline_completion#keybindings#Setup()
endfunction
I have created pull request here: #26
Noted: I'm quite new in lua and nvim plugin, please help to review
Metadata
Metadata
Assignees
Labels
No labels