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

Suggestions sometimes are missing keywords #67

Open
mikehaertl opened this issue Apr 28, 2023 · 0 comments
Open

Suggestions sometimes are missing keywords #67

mikehaertl opened this issue Apr 28, 2023 · 0 comments

Comments

@mikehaertl
Copy link

It often happens that a keyword is not suggested even though it definitely appears in some buffer. For example here, where the keyword is literally 2 lines above:

image

I don't have a procedure to reproduce this. If there's something I can try to debug when it happens, let me know.

Relevant part of my config:

    sources = cmp.config.sources({
      { name = 'vsnip' },
      { name = 'nvim_lsp' },
      {
          name = 'buffer',
          option = {
            -- complete from all buffers
            get_bufnrs = function()
              return vim.api.nvim_list_bufs()
            end,
            -- Use iskeyword instead of default regex to match words
            keyword_pattern = [[\k\+]],
          },
      },
      { name = 'nvim_lua' },
      { name = 'nvim_lsp_signature_help' },
      { name = 'path' },
    }),
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