Skip to content

autotrigger option in vim.lsp.completion.enable is not working #3

@bpingris

Description

@bpingris

Hi!

it's not an issue with your configuration but maybe you have some extra knowledge to help me add autocompletion!

I've set up the completion like in your config, only setting the autotrigger option to true

vim.api.nvim_create_autocmd("LspAttach", {
		group = vim.api.nvim_create_augroup("UserLspAttach", { clear = false }),
		callback = function(ev)
				vim.lsp.completion.enable(true, ev.data.client_id, ev.buf, { autotrigger = true })
		end
})

unfortunately I don't have the completion showing up when editing files, if I call the vim.lsp.completion.trigger function the autocomplete works

do you know by any chance if I need to set up something else to have the autocompletion working automatically while writing in the buffer?
this documentation from neovim does not mention anything else, I think

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions