Skip to main content

Usage examples

There is nothing to run. Once a plugin is enabled, Claude uses it whenever it reads or edits a matching file. These examples show the errors you can expect to see surfaced. The messages are real output from the servers.

Bash: a missing fi​

deploy.sh
#!/bin/bash
if [ "$ENV" = "prod" ]; then
echo $TARGET
bash-language-server
Couldn't find 'fi' for this 'if'.
Expected 'fi' matching previously mentioned 'if'.
shellcheck
SC1046 Couldn't find 'fi' for this 'if'.

With shellcheck installed you also get lint rules, such as unquoted variables (SC2086).

YAML: a bad indent​

deploy.yml
a: [1, 2
b: : :
yaml-language-server
2:1 Flow sequence in block collection must be sufficiently indented and end with a ]
2:4 Nested mappings are not allowed in compact mappings

Terraform: an incomplete expression​

main.tf
resource "x" "y" {
foo =
}
terraform-ls
2:9 Invalid expression: Expected the start of an expression, but found an invalid expression token.

JSON: a trailing comma​

settings.json
{"a": 1,}
vscode-json-language-server
1:8 Trailing comma

.jsonc files are checked as JSON with comments, so comments are allowed and a missing comma is reported (Expected comma).

CSS: a typo in a property​

app.css
a { colr: red; color: }
vscode-css-language-server
1:5 Unknown property: 'colr'
1:23 property value expected

SCSS and Less files get the same treatment, including semi-colon expected and variable value expected.

HTML: errors inside <style>​

index.html
<style>a { color: }</style>
vscode-html-language-server
property value expected
HTML covers embedded CSS and JS

The HTML server validates the CSS and JavaScript inside a page. It does not report malformed markup such as an unclosed <p>.

Ask Claude directly​

Claude also has an LSP tool. You can ask for things the servers know:

> List the symbols in main.tf
> What does the hover say for the `image` key in deploy.yml?
> Which keys does package.json define?

Cheat sheet​

You wantDo this
See which plugins are onclaude plugin list
Turn one offclaude plugin disable yaml-lsp@claude-lsp-plugins
Turn it back onclaude plugin enable yaml-lsp@claude-lsp-plugins
Remove the lotclaude plugin marketplace remove claude-lsp-plugins