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

feat(lsp): add helper function for getting server settings #583

Merged
merged 1 commit into from Jun 2, 2022

Conversation

mehalter
Copy link
Member

@mehalter mehalter commented Jun 2, 2022

This further improves the user experience for setting up LSP specific plugins. With this new helper function the user can do the following:

return {
  lsp = {
    skip_setup = { "tsserver" },
  },
  plugins = {
    init = {
      {
        "jose-elias-alvarez/typescript.nvim",
        after = "nvim-lsp-installer",
        config = function()
          require("typescript").setup {
            server = astronvim.lsp.server_settings("tsserver")
          }
        end,
      },
    },
    ["nvim-lsp-installer"] = {
      ensure_installed = { "tsserver" },
    },
  },
}

@mehalter mehalter merged commit 84eb8ae into main Jun 2, 2022
@mehalter mehalter deleted the lsp_server_settings branch June 2, 2022 14:21
This was referenced Jun 2, 2022
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

Successfully merging this pull request may close these issues.

None yet

2 participants