Open lucypero opened 2 years ago
<deleted by the author, motive: incorrect>
@urikaoli
no it's not an LSP issue. The same thing happens on rust-analyzer. It's some configuration thing. I'll look into it later.
@lucypero
My mistake, actually, setting coq_settings.match.unifying_chars
to include "."
might solve it
@urikaoli no, that made it even worse haha.
You said it works for you. can you share your config?
@lucypero sure
lspconfig.tsserver.setup { on_attach = on_attach }
g.coq_settings = {
auto_start = 'shut-up',
clients = { tree_sitter = { enabled = false }, paths = { preview_lines = 3 } },
display = { icons = { mode = 'short' } },
keymap = { recommended = true },
}
But that won't be of any help I assume. Vim's completion "engine" is quite weird, gets even weird when trying to juggle lua, vimscript and an auto-completion framework.
You could try rewriting your insert mode keymaps to use the vim.keymap
API... I don't know, tried reading your init.vim
but my configuration's been full lua for so long that vimscript seems alien to me.
FWIW, I'm seeing the same issue. NVIM v0.7.0 on Win32, coq
at version b23cd450
. I tried the suggestion in this comment but that kept C-Space
from working at all.
Please let me know how I can assist troubleshooting this further.
I am also having the same issue
Though it doesn't fix the core issue, below is a partial workaround which may prove useful. The below mapping inserts a . and manually triggers Lsp completions when a . is typed in insert mode:
vim.api.nvim_set_keymap('i', '.', '<cmd>lua vim.api.nvim_feedkeys(vim.api.nvim_replace_termcodes(".<C-x><C-u><C-e>", true, false, true), "n", true)<CR>', { noremap = true })
does this issue still happen on the latest?
there has been lots of change changes, so im not sure if the original issue still persists
Still happens for me on latest.
on macos It happens for me too with nightly + native lsp + omnisharp
Hey! Clean install here, it's still happening!
Happens for me also when using python.
For example, typing import date|
only shows some snippets, but if I press <C-Space>
, I get suggestions as import datetime
etc.
my behavior is similar. the dot will not trigger completion unless i do dot + space. Then completions will come. Also trying to manually trigger the completion will not redraw the completion pop up. Even when completions are there (via dot + space), c-space should usually flash the popup menu. This does not happen. I am using latest as of today, it only affects my windows computer.
I've got the same issue here. It's somewhat transient, sometimes the suggestion comes up straight away, but most of the time it doesn't. Can confirm it's happening in at least both Lua and Javascript/Typescript. It doesn't seem to be related just to .
either, but naturally .
is the case where you'd hope to get suggestions. If I backspace and enter the .
again, it almost always is able to show the suggestions I'd expect.
For demonstration purposes, I have the following code:
const EXAMPLE = { foo: true, bar: false };
// < cursor here
And then I type:
:messages clear
to clear up the debug logsi
to enter insertE
the suggestion pops up, <tab>
to select, then.
and it auto completes EXAMPLE.
. From here I expect the suggestions foo
and bar
to appear.
For example, in Javascript:
console.
When you press the dot, nothing shows up. I have to, for example, manually trigger autocompletion by pressing
C-Space
.I don't know why the pum disappears when I type the dot.