Skip to content

Commit

Permalink
Merge pull request #51 from Hi-Angel/emacs-support
Browse files Browse the repository at this point in the history
README.md: add configuration section for Emacs
  • Loading branch information
Beaglefoot authored Jul 16, 2023
2 parents a9fb31b + 58d2fb0 commit a368bed
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,22 @@ Implementation of AWK Language Server based on [tree-sitter](https://github.com/

VSCode extension is developed as part of this project and can be downloaded from marketplace [here](https://marketplace.visualstudio.com/items?itemName=beaglefoot.awk-ide-vscode).

### Emacs

#### [Eglot](https://github.com/joaotavora/eglot)

Add to your config:

```lisp
(with-eval-after-load 'eglot
(add-to-list 'eglot-server-programs
'(awk-mode . ("awk-language-server"))))
```

#### [lsp-mode](https://github.com/emacs-lsp/lsp-mode)

[Support is built-in](https://emacs-lsp.github.io/lsp-mode/page/lsp-awk/), so no action is needed besides turning `lsp-mode` on.

### Vim

- `npm install -g "awk-language-server@>=0.5.2"`
Expand Down

0 comments on commit a368bed

Please sign in to comment.