Skip to content
This repository was archived by the owner on Oct 13, 2021. It is now read-only.
This repository was archived by the owner on Oct 13, 2021. It is now read-only.

Upstream nvim at 23fe6dba1 breaks tab completion #399

Open

Description

@arsham

My testing minimal init.vim
The part of the mapping that is relevant:

require('astronauta.keymap')
vim.keymap.inoremap{'<Tab>',   require("completion").smart_tab,   buffer=true, silent=true}
vim.keymap.inoremap{'<S-Tab>', require("completion").smart_s_tab, buffer=true, silent=true}

How to reproduce
Compile the upstream at this commit. Use tab completion.

Expected behaviour
Completion popup to show up, but it doesn't.

I can confirm that completion works at this commit.

Activity

  1. stormc commented on Sep 8, 2021

    @stormc

    The handler function's signature in source/lsp.lua needs to be updated, possibly adding a backwards-compatible wrapper for neovim versions prior to this commit. As an intermediate hack, this should help:

    -  vim.lsp.buf_request(params.bufnr, 'textDocument/completion', position_param, function(err, _, result)
    +  vim.lsp.buf_request(params.bufnr, 'textDocument/completion', position_param, function(err, result)
  2. mrkz commented on Sep 29, 2021

    @mrkz

    @stormc thanks for the workaround, looking forward to the fix 😄

  3. stormc commented on Sep 30, 2021

    @stormc

    @mrkz You're welcome, #400 does also proper-fix hover and signature for which you would have to apply this workaround's gist as well, so I suggest to use that instead of this workaround until it's been merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions