Replies: 1 comment
-
You need to use local status, val = pcall(vim.api.nvim_buf_get_var, bufnr, "completion")
local disabled = (status == true and val == false) When status returns |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
How to toggle blink completions with a binding? I tried getting the state with
vim.api.nvim_buf_get_var(0, "completion")
as in:but get
Key not found: completion
.Also curious to know if it's possible to only toggle a particular source, e.g. dictionary. And restrict it to using only on a particular file. Curious in all of these ways.
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions