Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sh-language-server

npm version

A language server for the POSIX.1-2024 Shell Command Language.

Installation

Requires Node.js 22 or later.

npm install --global @inknexlab/sh-language-server

External dependencies

Diagnostics use ShellCheck and formatting uses shfmt. Install both separately; if either executable is unavailable, only the corresponding feature is unavailable.

Features

  • Completion
  • Diagnostics
  • Formatting
  • Hover
  • Semantic tokens

Emacs

Register the server for sh-mode with Eglot:

(require 'eglot)

(add-to-list 'eglot-server-programs
             '(sh-mode . ("sh-language-server" "--stdio")))

Implementation

Uses the POSIX CST from tree-sitter-posix-sh for parsing.

License

MIT

About

Language server for POSIX sh.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages