-
Notifications
You must be signed in to change notification settings - Fork 3
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
Fly mode from inside a string #17
Comments
Added a new configuration option for the extension With this you can do something like: extensions={
--The other extensions
{'fly',{')','}',']',' ',"'",'"',nofilter=true}},
} |
Might be that these two are working against each other and I'm just not understanding but now when I'm writing normal text in markdown and I hit ' I get '' which I didn't get before. Can I get both? |
Can you elaborate more specifically: can't reproduce glitch. |
Before I only ran the setup function without any options: use {
'altermo/ultimate-autopair.nvim',
event = { 'InsertEnter', 'CmdlineEnter' },
config = function()
require('ultimate-autopair').setup({
-- extensions = {
-- { 'fly', { ')', '}', ']', ' ', "'", '"', nofilter = true } },
-- }
})
end,
} Now when writing in markdown files, I can write something like: If I uncomment the option you gave me above I can jump out of |
Well... The current way to configure built-in extensions is stupid: When setting use{
'altermo/ultimate-autopair.nvim',
event={'InsertEnter','CmdlineEnter'},
config=function ()
require('ultimate-autopair').setup({
extensions={
{'cmdtype',{'/','?','@'}},
'multichar',
'string',
{'treenode',{inside={'comment'}}},
{'escape',{filter=true}},
'rules',
'filetype',
{'alpha',{before={"'"}}},
{'suround',{'"',"'"}},
{'fly',{')','}',']',' ',"'",'"',nofilter=true}},
},
})
end,
} |
Ah, yes, that makes it a little harder BUT your above config seems to work. Thanks! |
I'm writing in this closed issue because I'm getting the following when I'm opening neovim:
Here's my current config again which you helped me with above: require('ultimate-autopair').setup({
extensions = {
{ 'cmdtype', { '/', '?', '@' } },
'multichar',
'string',
{ 'treenode', { inside = { 'comment' } } },
{ 'escape', { filter = true } },
'rules',
'filetype',
{ 'alpha', { before = { "'" } } },
{ 'suround', { '"', "'" } },
{ 'fly', { ')', '}', ']', ' ', "'", '"', nofilter = true } },
},
}) |
I often use the fly mode and it works great. It doesn't work inside strings and I understand why but wonder if it would be possible to configure so that it does? In other plugins it worked and I had to do ctrl-v) to add a ')' inside a string because otherwise I would jump to the wrapping ).
If possible I would appreciate a config example. I'm guessing you could use "list_of_characters" but I'm not sure how.
The text was updated successfully, but these errors were encountered: