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

tab_fallback default is \t, even if user changes default #Accept keybind. #305

Open
dror-g opened this issue Jan 23, 2024 · 0 comments
Open

Comments

@dror-g
Copy link

dror-g commented Jan 23, 2024

let default = get(g:, 'codeium_tab_fallback', pumvisible() ? "\<C-N>" : "\t")

If a user changes the default keybind for codeium#Accept, whenever he uses that key and there's no completion available -
a tab (\t) will be inserted.

For example, if user sets this as per readme:
vim.keymap.set('i', '<C-g>', function () return vim.fn['codeium#Accept']() end, { expr = true, silent = true })
when no completions available a \t will be used.

The solution at present is to use:
vim.g.codeium_tab_fallback = '<C-g>'

I think this needs to be resolved, with the plugin code defaulting to normal key behaviour if no completion,
Or at least mention this behaviour in readme until fixed.

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant