Skip to content

Commit afd0d82

Browse files
authored
Merge pull request #1106 from caisah/main
Add docs for configuring eglot's emacs
2 parents e7c1568 + c41742a commit afd0d82

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,18 @@ Add the configuration to your `.emacs.d/init.el`
168168
(sh-mode . lsp))
169169
```
170170

171+
Using the built-in `eglot` lsp mode:
172+
173+
```emacs-lisp
174+
(use-package eglot
175+
:config
176+
(add-to-list 'eglot-server-programs '((sh-mode bash-ts-mode) . ("bash-language-server" "start")))
177+
178+
:hook
179+
(sh-mode . eglot-ensure)
180+
(bash-ts-mode . eglot-ensure))
181+
```
182+
171183
## Logging
172184

173185
The minimum logging level for the server can be adjusted using the `BASH_IDE_LOG_LEVEL` environment variable

0 commit comments

Comments
 (0)