Skip to content
This repository has been archived by the owner on Aug 12, 2023. It is now read-only.

Correct way to setup? #274

Discussion options

You must be logged in to vote

There's a few things that might be going wrong here. First, make sure you're setting up null-ls using the instructions here, which require two separate steps (null_ls.setup is deprecated). Then, you probably want to turn off tsserver formatting to avoid conflicts:

require("lspconfig").tsserver.setup({
    capabilities = require("cmp_nvim_lsp").update_capabilities(vim.lsp.protocol.make_client_capabilities()),
    on_attach = function(client)
        client.resolved_capabilities.document_formatting = false
    end,
})

I have no idea about the extra diagnostics thing, but are you sure they're coming from null-ls? Nothing in your config should affect diagnostics at all, so could you try comme…

Replies: 6 comments 14 replies

Comment options

You must be logged in to vote
3 replies
@Livingnight
Comment options

@sambigelow
Comment options

@jose-elias-alvarez
Comment options

Answer selected by benfrain
Comment options

You must be logged in to vote
1 reply
@jose-elias-alvarez
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
7 replies
@jrafaaael
Comment options

@benfrain
Comment options

@gtnbssn
Comment options

@benfrain
Comment options

@jose-elias-alvarez
Comment options

Comment options

You must be logged in to vote
2 replies
@benfrain
Comment options

@jose-elias-alvarez
Comment options

Comment options

You must be logged in to vote
1 reply
@jose-elias-alvarez
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
8 participants