How to get diagnostics in BASH scripts (.sh files) with Native LSP?

This page summarizes the projects mentioned and recommended in the original post on /r/neovim

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • efm-langserver

    General purpose Language Server

  • Have you configured efm-langserver to use shellcheck? See https://github.com/mattn/efm-langserver#example-for-configyaml

  • ShellCheck

    ShellCheck, a static analysis tool for shell scripts

  • I was able to get diagnostics using shellcheck with efm-langserver.

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • sh

    A shell parser, formatter, and interpreter with bash support; includes shfmt (by mvdan)

  • I also use shfmt with efm-langserver too. Shfmt provides auto-formatting. For completions I use bash-language-server with native lsp.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts