ayamir / nvimdots

A well configured and structured Neovim.
BSD 3-Clause "New" or "Revised" License
2.94k stars 460 forks source link

在书写latex的时候,lsp会自动的打出()小括号,但是应该打出大括号{} #29

Closed jczhang02 closed 3 years ago

jczhang02 commented 3 years ago

image

1096015776 commented 3 years ago

I not write latex, i use a latex demo,I do not find this problem first date begin is good just makealetter is not good then i find github's latex demo do not use () event not use {} if you think it is bad , I try it. I find just lsp complete, so you can change lsp or you can find a plugin about latex. why not try more. if you feel it is bad just at makeatletter, you can give the lsp issue.

1096015776 commented 3 years ago

here you are the lsp https://github.com/latex-lsp/texlab

jczhang02 commented 3 years ago

i am using this lsp, but it shows : all function will auto appear "()" image

1096015776 commented 3 years ago

I'm sorry that I can not help you, I try it to change lsp config,like nvim lsp config example, but not work,it complete use (),but I find the latex lsp give me example is not () {}, total,I stop the lsp , the not complete (). so I'm sure that is lsp let it use(),but I can not change, maybe somewhere i not notice.maybe you should get help from the lsp origin, becacuse there is many people who use know why.

jczhang02 commented 3 years ago

thanks for your work!

jczhang02 commented 3 years ago

i have commit this question to texlab, hope can get a solution

jczhang02 commented 3 years ago

I'm sorry that I can not help you, I try it to change lsp config,like nvim lsp config example, but not work,it complete use (),but I find the latex lsp give me example is not () {}, total,I stop the lsp , the not complete (). so I'm sure that is lsp let it use(),but I can not change, maybe somewhere i not notice.maybe you should get help from the lsp origin, becacuse there is many people who use know why.

hey, texlab won't add () after functions, like "\title", so it might be the fault of some autopair plugin, do you have a idea?

jczhang02 commented 3 years ago

problem solved, just look up "autopair" plugin to change second config

1096015776 commented 3 years ago

so cool that you solve it