Skip to content

reference: explain how LSP plugins work together #83

@practicalli-johnny

Description

@practicalli-johnny

Neovim LSP Components: How They Work Together

Component Overview

nvim-lspconfig

Purpose: Provides pre-configured setups for 200+ language servers

  • Contains default configurations for each language server
  • Exposes a simple API: require('lspconfig').server_name.setup(config)

mason-lspconfig

Purpose: Bridges Mason package manager with nvim-lspconfig

  • Automatically calls setup() for language servers installed by Mason
  • Maps Mason package names to lspconfig server names

AstroLSP

Purpose: Unified configuration interface for LSP in AstroNvim

  • Provides a single location to configure all LSP settings
  • Some configuration tables:
    • servers: List servers not auto-handled by mason-lspconfig
    • config: Default configurations passed to servers setup() calls

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    Status

    Options

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions