Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(completion): Add vim-tabby #904

Merged
merged 16 commits into from
Apr 24, 2024
Merged
Show file tree
Hide file tree
Changes from 10 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions lua/astrocommunity/completion/tabby-nvim/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# tabby-nvim

Tabby is a self-hosted AI coding assistant that can suggest multi-line code or full functions in real-time.

**Repository:** <https://github.com/TabbyML/vim-tabby>

### Default Mappings

| Mappings | Action |
|------------|-------------------|
| `<C-e>` | Accept completion |
| `Ctrl + \` | Trigger/Dismiss |

## Known Conflicts

- Tabby internally utilizes the `<C-R><C-O>` command to insert the completion. If you have mapped `<C-R>` to other functions, you won't be able to accept the completion. In such scenarios, you may need to manually modify the function `tabby#Accept()` in [`autoload/tabby.vim`](https://github.com/TabbyML/tabby/tree/main/clients/vim/autoload/tabby.vim).
8 changes: 8 additions & 0 deletions lua/astrocommunity/completion/tabby-nvim/init.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
return {
"TabbyML/vim-tabby",
mehalter marked this conversation as resolved.
Show resolved Hide resolved
init = function()
vim.g.tabby_keybinding_accept = "<C-e>"
vim.g.tabby_keybinding_trigger_or_dismiss = "<C-\\>"
vim.g.tabby_node_binary = "/path/to/node"
Uzaaft marked this conversation as resolved.
Show resolved Hide resolved
end,
}
Loading