Giter Site home page Giter Site logo

cmp-fuzzy-path's People

Contributors

bekaboo avatar deliasvcruz avatar github-actions[bot] avatar rabbiveesh avatar t-727 avatar tzachar avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

cmp-fuzzy-path's Issues

Error detected while processing TextChangedI Autocommands for "*":

Description

Firstly thanks for making this plugin!

When I'm editing latex/markdown files, this error always occurs when my cursor is behind \frac{:

Error detected while processing TextChangedI Autocommands for "*":
Error executing lua callback: Vim:E220: Missing }.
stack traceback:
        [C]: in function 'expand'
        .../packages/opt/cmp-fuzzy-path/lua/cmp_fuzzy_path/init.lua:66: in function 'find_cwd'
        .../packages/opt/cmp-fuzzy-path/lua/cmp_fuzzy_path/init.lua:112: in function 'complete'
        .../nvim/site/pack/packages/opt/nvim-cmp/lua/cmp/source.lua:330: in function 'complete'
        ...re/nvim/site/pack/packages/opt/nvim-cmp/lua/cmp/core.lua:302: in function 'complete'
        ...re/nvim/site/pack/packages/opt/nvim-cmp/lua/cmp/core.lua:170: in function 'callback'
        ...re/nvim/site/pack/packages/opt/nvim-cmp/lua/cmp/core.lua:232: in function 'autoindent'
        ...re/nvim/site/pack/packages/opt/nvim-cmp/lua/cmp/core.lua:162: in function 'on_change'
        ...re/nvim/site/pack/packages/opt/nvim-cmp/lua/cmp/init.lua:313: in function 'callback'
        ...ite/pack/packages/opt/nvim-cmp/lua/cmp/utils/autocmd.lua:49: in function 'emit'
        ...ite/pack/packages/opt/nvim-cmp/lua/cmp/utils/autocmd.lua:23: in function <...ite/pack/packages/opt/nvim-cmp/lua/cmp/utils/autocmd.lua:22>

minimal cmp config

local cmp = require('cmp')

cmp.setup({
  sources = {
    {
      name = 'fuzzy_path',
    },
  },
})

Steps to reproduce

  1. Install this plugin on nvim, using the minimal cmp config above
  2. Open nvim with an empty buffer
  3. Type \frac{
  4. Type \
  5. See the error

Lag issues

The cursor lags when typing a path in commandline mode.

I assume the code is blocking rather than async when loading the path.

Hidden files are not candidates

Setting options = { 'fd', '--hidden', '--max-depth', '20', '--full-path', '--exclude', '.git' } does not make files starting with dot candidates.
For example, .github or .eslintrc.

If the command is executed directly, it will be included in the result.

I want to set allowed_cmd_context

Currently completion only works for a very few commands that match allowed_cmd_context.
I would like to be able to set allowed_cmd_context with a function in options.

Path relative to current file instead of cwd

Thanks for making this great plugin! Can I make it insert the path relative to my current file? Perhaps easier to explain with an example.

Let's say I have the following folder structure:

├── src
│   ├── lib
│   │   ├── utils.js
│   ├── modules
│       ├── example
│           ├── index.js

I open .src/modules/example/index.js and type: import * from './utils.js'. Then it will correctly find the path of ./src/lib/utils.js, but when I hit enter it insert the path relative to the cwd (./src/lib/utils.js). Is there a way to instead insert the path relative to where I searched from(../../lib/utils.js)?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.