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

Path completions not working properly in MacOS #16

Closed
alienman5k opened this issue Oct 8, 2024 · 2 comments
Closed

Path completions not working properly in MacOS #16

alienman5k opened this issue Oct 8, 2024 · 2 comments

Comments

@alienman5k
Copy link

alienman5k commented Oct 8, 2024

I have tried the default configuration and many other combinations to see if I can get Path completions to be the first on the list but there is always a Mix and most of the time Path completions are not listed and even giving incorrect ones (like recently used which is not useful if I already moved to that part of the path)

I am not sure if the issue is specific to MacOS, but that is the only OS I have tested.

Is there a way to ignore any other suggestions and just show Path related when we are actually in a Path?

Below is the last configuration I tried but the results are pretty much the same as default (did not notice any change in behavior)

    sources = {
      providers = {
        {
          {
            'blink.cmp.sources.path',
            opts = {
              trailing_slash = true,
              label_trailing_slash = true,
              -- get_cwd = function(context) return vim.fn.expand(('#%d:p:h'):format(context.bufnr)) end,
              show_hidden_files_by_default = true,
            }
          },
          { 'blink.cmp.sources.lsp' },
          { 'blink.cmp.sources.snippets', score_offset = -3 },
        },
        { { 'blink.cmp.sources.buffer' } },
      },
    },
Screenshot 2024-10-07 at 10 49 52 PM Screenshot 2024-10-07 at 10 50 38 PM
@alienman5k
Copy link
Author

Tested in linux, and does not seem to be platform specific as far as I can tell.

@Saghen Saghen closed this as completed in 15cb871 Oct 8, 2024
@alteriks
Copy link

alteriks commented Oct 9, 2024

Hi @Saghen, it seems that path completion is still broken. Using latest 15cb871 with default config I'm still having issues with part of path being replaced after accepting next completion

Kooha-2024-10-09-12-30-21.mp4

As you can see last used snippets are getting in the way of choosing path.

lopi-py pushed a commit to lopi-py/blink.cmp that referenced this issue Oct 10, 2024
lopi-py pushed a commit to lopi-py/blink.cmp that referenced this issue Oct 10, 2024
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

2 participants