Skip to content

Add configuration for Emacs built in LSP-server, eglot. Requires Emac… #12

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions scripts/lsp-kotlin-emacs-eglot.el
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
(use-package eglot
:hook ((kotlin-mode kotlin-ts-mode) . (lambda () (eglot-ensure)))
:ensure nil ;; use built-in eglot Emacs 29. or later
:custom
(eglot-autoshutdown t)
(eglot-extend-to-xref t)
(eglot-sync-connect 1)
(eglot-connect-timeout 60)
(eglot-report-progress t)
:config
(add-to-list 'eglot-server-programs
'((kotlin-ts-mode kotlin-mode) . ("bash" "PATH-TO-KOTLIN-LSP/kotlin-lsp.sh" "--stdio"))))
File renamed without changes.