Skip to content
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

Use language server to replace its completion? #12

Closed
Freed-Wu opened this issue Nov 19, 2023 · 5 comments
Closed

Use language server to replace its completion? #12

Freed-Wu opened this issue Nov 19, 2023 · 5 comments
Labels
question Further information is requested

Comments

@Freed-Wu
Copy link
Collaborator

There is a language server for dot. Can we remove the completion function and let user to use language server, just keep compile function (LSP doesn't have this feature)?

  • For developers, it can save maintain cost.
  • For users, language server can provide better experience.
@Freed-Wu
Copy link
Collaborator Author

Hey, what is your opinion? If you agree, I think I can do it 😄 And if you are busy, you can add me to collaborator 👍

@liuchengxu
Copy link
Owner

Collaborator invite sent.

I don't think the existing completion function has to be removed, you can keep it as is and extend it with the language server support, for the language server is not always available.

@Freed-Wu
Copy link
Collaborator Author

Perhaps we can disable completion when executable('dot-language-server') == v:true because two same completions will give user confusion?

@Freed-Wu Freed-Wu added the question Further information is requested label Dec 30, 2023
@Freed-Wu Freed-Wu changed the title Use language server to replace it? Use language server to replace its completion? Dec 30, 2023
@liuchengxu
Copy link
Owner

By default only the omnifunc is defined, can you elaborate on how it interferes with the completion from the language server? I guess they can just co-exist as these two completions have different triggers.

setlocal omnifunc=graphviz#completion#Omni

@Freed-Wu
Copy link
Collaborator Author

Freed-Wu commented Jan 2, 2024

Oh, let me rethink if there are any method to combine LSP with this plugin.

@Freed-Wu Freed-Wu closed this as completed Jan 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants