keybind is not working when open multiple buffers (nvchad)#27
Open
phamngocquy wants to merge 1 commit intoTabbyML:mainfrom
Open
keybind is not working when open multiple buffers (nvchad)#27phamngocquy wants to merge 1 commit intoTabbyML:mainfrom
phamngocquy wants to merge 1 commit intoTabbyML:mainfrom
Conversation
|
This bug happens on LazyVim too. I fixed it by using their PR. return {
{
"phamngocquy/vim-tabby",
lazy = false,
dependencies = {
"neovim/nvim-lspconfig",
},
init = function()
vim.g.tabby_agent_start_command = { "npx", "tabby-agent", "--stdio" }
vim.g.tabby_inline_completion_trigger = "auto"
vim.g.tabby_inline_completion_keybinding_accept = "<Tab>"
end,
},
}Make sure to update the repo once you changed the config file: Just run :Lazy and shift+u to replace the origin. Keep this repo until the PR is merged. |
Author
|
hi, any update ? |
Member
|
Thank you for the PR. The keybinding setup is designed to be called when the LSP attaches, which is what I will release a patch soon to address this issue. Thank you again for reporting this bug. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I'm using nvchad, that realize the 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#Setupis just initilized when open fisrt buffer.sulution here is create an autocmd
Noted: I'm quite new in mua and nvim plugin, please help to review