cmp-fuzzy-path's People
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
- Install this plugin on nvim, using the minimal cmp config above
- Open nvim with an empty buffer
- Type
\frac{
- Type
\
- 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.
Is it possible to make this work with cd in :cd?
Hi I see this plugin can work with :edit
and :write
. Can we make it work with :cd
too?
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.