Skip to content

cmp-path doesn't work for me from commit 61e531bd3e52573f5623531051986edb2e51f850 #85

Description

@nipun-ghanathe

I recently updated cmp-path and from then on it didn't seem to work. Other sources were working fine in nvim-cmp. I tried to use previous commits. And found that commit "584414b" was working fine for me.

In commits "61e531b" and "99c4981" no source works as I get this error:

Error detected while processing TextChangedI Autocommands for "*":
Error executing lua callback: ...un/.local/share/nvim/lazy/cmp-path/lua/cmp_path/init.lua:242: pathMappings: expected table, got nil
stack traceback:
        [C]: in function 'error'
        vim/shared.lua:936: in function 'validate'
        ...un/.local/share/nvim/lazy/cmp-path/lua/cmp_path/init.lua:242: in function '_validate_option'
        ...un/.local/share/nvim/lazy/cmp-path/lua/cmp_path/init.lua:40: in function 'complete'
        ...nipun/.local/share/nvim/lazy/nvim-cmp/lua/cmp/source.lua:342: in function 'complete'
        ...e/nipun/.local/share/nvim/lazy/nvim-cmp/lua/cmp/core.lua:308: in function 'complete'
        ...e/nipun/.local/share/nvim/lazy/nvim-cmp/lua/cmp/core.lua:178: in function 'callback'
        ...e/nipun/.local/share/nvim/lazy/nvim-cmp/lua/cmp/core.lua:238: in function 'autoindent'
        ...e/nipun/.local/share/nvim/lazy/nvim-cmp/lua/cmp/core.lua:170: in function 'on_change'
        ...e/nipun/.local/share/nvim/lazy/nvim-cmp/lua/cmp/init.lua:372: in function 'callback'
        ...local/share/nvim/lazy/nvim-cmp/lua/cmp/utils/autocmd.lua:53: in function 'emit'
        ...local/share/nvim/lazy/nvim-cmp/lua/cmp/utils/autocmd.lua:14: in function <...local/share/nvim/lazy/nvim-cmp/lua/cmp/utils/autocmd.lua:13>

After those commits, from commit "aa330b5", other sources work properly and I don't get the above error, but now I don't get entries from cmp-path.

Activity

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions