Skip to content

How to add support for additional lsp server. #109

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

Closed
ThilinaTLM opened this issue Nov 26, 2021 · 2 comments
Closed

How to add support for additional lsp server. #109

ThilinaTLM opened this issue Nov 26, 2021 · 2 comments

Comments

@ThilinaTLM
Copy link

Thanks for great work!

How to extends support for other language servers such as cmake, ltex.
I have added the configuration for ltex in navigator setup but it seems to be that code-actions and other things are not working.

Nvim lspconfig ltex

Thanks!

My Setup:
OS Manjaro Linux
Kernel 5.14.18-1-MANJARO
Neovim 0.6

ray-x added a commit that referenced this issue Nov 26, 2021
@ray-x
Copy link
Owner

ray-x commented Nov 26, 2021

You can check this PR on how to add a new lsp:
#107

But it can be simply put the lsp name in the list here:

local servers = {
"angularls", "gopls", "tsserver", "flow", "bashls", "dockerls", "julials", "pylsp", "pyright",
"jedi_language_server", "jdtls", "sumneko_lua", "vimls", "html", "jsonls", "solargraph", "cssls",
"yamlls", "clangd", "ccls", "sqls", "denols", "graphql", "dartls", "dotls",
"kotlin_language_server", "nimls", "intelephense", "vuels", "phpactor", "omnisharp",
"r_language_server", "rust_analyzer", "terraformls", "svelte", "texlab", "clojure_lsp"
}

e.g. add cmake and ltex to end of the array. When navigator startup, it will load default setup for you.

Also I just submit some code to allow you add servers. Please check readme
https://github.com/ray-x/navigator.lua#add-your-own-servers

Would be great you can run some tests and create a PR. Thanks!

@ThilinaTLM
Copy link
Author

Thank you!

Would be great you can run some tests and create a PR. Thanks!

Sure, I will.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants