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

[Wanted Help] Showing multiple language servers choice #42

Closed
touhidulshawan opened this issue Jan 5, 2022 · 2 comments
Closed

[Wanted Help] Showing multiple language servers choice #42

touhidulshawan opened this issue Jan 5, 2022 · 2 comments

Comments

@touhidulshawan
Copy link

2022-01-05_15-00
I am encountering this problem after using the null-ls-nvim. Every time I have to choose one of theme? I can not figure out the problem. what should I do?

@rolfb
Copy link

rolfb commented Jan 5, 2022

It may depend on the file type, but if you go to your local version of https://github.com/LunarVim/Neovim-from-scratch/blob/master/lua/user/lsp/settings/jsonls.lua#L180, probably ~/.config/nvim/lua/user/lsp/settings/jsonls.lua
and add the following above the line which says settings = {

init_options = {
  provideFormatter = false,
},

Close and re-open neovim and then it should stop trying to provide a formatter from jsonls which may be the cause of this.

@rolfb
Copy link

rolfb commented Jan 5, 2022

Tiny caveat, I don't actually know if json-ls provides formatters so setting it to false may be too heavy-handed.
Perhaps someone else can clarify if setting it to false can become problematic later.

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