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

Not Triggering within quotes #18

Closed
redxtech opened this issue Dec 1, 2021 · 8 comments
Closed

Not Triggering within quotes #18

redxtech opened this issue Dec 1, 2021 · 8 comments

Comments

@redxtech
Copy link

redxtech commented Dec 1, 2021

Hey! I recently started using this, and for some reason I've been unable to trigger path completion from within quotes (both single and double).

Is this intended behavior? If so, is there a way to enable path completion from within quotes?

@hrsh7th
Copy link
Owner

hrsh7th commented Dec 2, 2021

I've fixed it.

@hrsh7th hrsh7th closed this as completed Dec 2, 2021
@redxtech
Copy link
Author

redxtech commented Dec 2, 2021

Amazing, thank you!

@TheBlob42
Copy link

Just as a follow up I realized that I can not trigger path completion within quotes (single and double) if I start with ~ for the home directory (other absolute and relative paths work fine)

Should I open a separate issue for this? 🤔

@hrsh7th
Copy link
Owner

hrsh7th commented Dec 3, 2021

What do you mean?
I can trigger completion with "~/|" (| is cursor)

@TheBlob42
Copy link

Ok thats weird 😅
I have just updated to nvim 0.6 and updated all my plugins, but it does not work for me (all other path completion does)

Let me create a minimal config, not that this is another plugin interfering somehow

@TheBlob42
Copy link

I tried with the following minimal config:

local install_path = vim.fn.stdpath('data') .. '/site/pack/packer/start/packer.nvim'
local is_packer_installed = vim.fn.isdirectory(install_path) == 1
if not is_packer_installed then
    vim.api.nvim_command('!git clone https://github.com/wbthomason/packer.nvim ' .. install_path)
end

require('packer').startup(function(use)
    use 'wbthomason/packer.nvim'
    use 'hrsh7th/cmp-path'
    use 'hrsh7th/nvim-cmp'
end)

require('cmp').setup {
    sources = {
        { name = 'path' }
    }
}

example

Could that have something to do with the new 0.6 version (maybe a VIM patch or some small change)?

@hrsh7th
Copy link
Owner

hrsh7th commented Dec 3, 2021

Ah. Sorry. My local version was modified...

@nyngwang
Copy link

Just as a follow up I realized that I can not trigger path completion within quotes (single and double) if I start with ~ for the home directory (other absolute and relative paths work fine)

I have the same issue :/

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

4 participants