-
Notifications
You must be signed in to change notification settings - Fork 43
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
link-format with auto completion #26
Comments
I updated zk config to |
Must be an issue with nvim-autopairs then. This doesn't happen with nvim-cmp and delimitmate. |
I merged in a PR that should fix this issue without resorting to the hack with Let me know if it works for you. |
Hm.. The opening brackets are deleted for me, but not the closing ones, that are presumably added by my auto-pair-plugin (smart-pairs in my case). Instead they are prepended to the link?! I don't really undrestand what's happening there! To make things even weirder, it works correctly if the link is the first String in the current line. Is this the error @zhengpd described, or is the autopair-plugin at fault here? |
I added something in the LSP server to remove extra I suggest disabling |
I initially installed smart-pairs because nvim-autopairs had this issue! Would be curious to know if @zhengpd still doesn’t see this issue when using nvim-autopairs. Disabling the the autopair-plug-in would be kind of a bummer but a last resort I would be ok with. Moving backwards to remove the brackets each time would be more annoying I guess. |
definitely works with delimitmate, which is what I use |
@kabouzeid I'm a delemitmate convert now! Works flawlessly. Grüße nach Aachen! |
Hey @kabouzeid, at this point I feel like I'm a bit annoying. But I still have a small request, if I may: Can you test what happens, if you add some links one after the other? Basically the same thing that is shown in the gif above. I still see the same behavior as in the screencast. It's working fine, when adding links in normal sentences, where there are other words in between the links. However, I oftentimes add multiple tags at the top of a file, when I know the link-text won't appear in the actual text of the note. @mickael-menu this might be due to the nature of the fix you provided, if I'm not mistaken? |
hmm works for me no problem, not sure what is happening on your end. my dotfiles are public if you want to take a look |
It's really weird! Sometimes it works without any problems, sometimes it looks like the gif above. Also, it doesn't seem to be dependant on the actual autopairs-plugin, as I've tried three different plugins to date. Looks kind of like an initialization error to me. I try to find a way to reproduce it and will be taking a look at your dotfiles. I can't open-source my whole dotfiles right now, but at least I have my nvim-config in a public repo, if you're interested. |
The local autopairs = require('nvim-autopairs')
local cond = require('nvim-autopairs.conds')
autopairs.get_rule('['):with_pair(cond.not_filetypes({ 'markdown' })) |
Maybe this latest commit helps ? |
I tried to insert wiki link by typing
[[
, and the completion menu pops up. After selecting a file, the generated text became[[[Untitled](4vyz)]]
, which I would expect to be[Untitled](4vyz)
or[[4vyz]]
. Am I missing something or this is intended behavior? The README doesn't talk about this.nvim-cmp
The text was updated successfully, but these errors were encountered: