Comments (13)
Thanks for reporting this issue. I'll take a look at it ASAP.
from substitute.nvim.
I think this issue is fixed by this commit.
Can you tell me if you are using an up-to-date version ?
from substitute.nvim.
I'm using the latest version of this plugin.
This is my packer config
use {
"gbprod/substitute.nvim",
config = function()
require("substitute").setup {}
end,
}
from substitute.nvim.
hmm ok, I see the problem. It's weird but I try to fix it.
from substitute.nvim.
I've made something here : #63
I will test it for a while before merging it.
If you want to try, you're welcome ;)
from substitute.nvim.
I tried and got this
Substitute failed
from substitute.nvim.
Oh! I forgot a debug log 😂
But does the substitution worked ?
from substitute.nvim.
No, It didn't
from substitute.nvim.
I believe It's waiting for me to put a register
This is the output when I press Ctrl-c
after the initial error Substitute failed
E5108: Error executing lua Keyboard interrupt
stack traceback:
[C]: in function 'getreg'
...ite/pack/packer/start/substitute.nvim/lua/substitute.lua:36: in function <...ite/pack/packer/start/substitute.nvim/lua/substitute.lua:31
If I put a register instead of ctrl-c
then It puts the text of the register wrong, like this:
struct Monster {
health: i32, // With your cursor here copy the content of {} --- yiB or yi{
}
health: i32,struct Wizard {} // Then here and try to put it inside the {} with your mapping ---- <leader>piB or <leader>pi{
from substitute.nvim.
Ok, that's strange, can you share your setup (options for setup method and mapping).
I've made a change to have some logs for debugging purpose, can you try again and tell me what messages you have ?
from substitute.nvim.
Any feedback on this issue @pedro757 ?
It seems to work for me.
from substitute.nvim.
I just tried the new branch #64 it works fine, however I'm also using wellle/targets.vim, but these plugins are incompatible right now.
from substitute.nvim.
Can you open a issue explaining the compatibilities issues you have with wellle/targets.vim ?
Thanks
from substitute.nvim.
Related Issues (20)
- Question about integration with `yanky.nvim` HOT 5
- Issue with ` key remapped HOT 3
- `motion2` isn't working with `substitute.range` HOT 2
- trim when substituting into not-linewise text object HOT 5
- For substitute.range, is there a way to provide a register or even a lua callback to replace motion1 or motion2? HOT 4
- Broken install/Substitute over range HOT 2
- attempt to index field 'highlight_substituted_text' (a nil value) HOT 2
- [substitute.range] Replace occurence with register in ... <some motion> HOT 4
- [substitute.range] Quickly prefix text HOT 3
- Highlighting the subject works only when cursor position is at the start of the subject HOT 2
- Update documentation
- unicode handling does not work correctly HOT 4
- `highlight_substituted_text` doesn't seem to play nice with `vim.highlight.on_yank()` HOT 2
- getting HOT 2
- Duplicate operator ?
- How to keep default settings and define keys table on lazy.nvim HOT 1
- [Feature Request] substitute/exchange operator provides 2 motion calls. HOT 1
- Custom action is not dot repeatable HOT 3
- Does not seem to work with TOML HOT 2
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.
from substitute.nvim.