Use eglot instead of lsp mode
This commit is contained in:
parent
f35965ac94
commit
436ea4dc08
1 changed files with 8 additions and 9 deletions
|
|
@ -110,6 +110,14 @@
|
||||||
(mapc #'disable-theme custom-enabled-themes)
|
(mapc #'disable-theme custom-enabled-themes)
|
||||||
(load-theme 'ef-winter :no-confirm))
|
(load-theme 'ef-winter :no-confirm))
|
||||||
|
|
||||||
|
(use-package eglot
|
||||||
|
:hook
|
||||||
|
(swift-mode . eglot-ensure)
|
||||||
|
:config
|
||||||
|
(add-to-list
|
||||||
|
'eglot-server-programs
|
||||||
|
'(swift-mode . ("/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/sourcekit-lsp"))))
|
||||||
|
|
||||||
(use-package emacs
|
(use-package emacs
|
||||||
:config
|
:config
|
||||||
(global-auto-revert-mode)
|
(global-auto-revert-mode)
|
||||||
|
|
@ -183,15 +191,6 @@
|
||||||
:line-spacing 0.2)))
|
:line-spacing 0.2)))
|
||||||
(fontaine-set-preset 'regular))
|
(fontaine-set-preset 'regular))
|
||||||
|
|
||||||
(use-package lsp-mode
|
|
||||||
:hook (swift-mode . lsp)
|
|
||||||
:commands lsp)
|
|
||||||
|
|
||||||
(use-package lsp-sourcekit
|
|
||||||
:after lsp-mode
|
|
||||||
:config
|
|
||||||
(setq lsp-sourcekit-executable "/Library/Developer/CommandLineTools/usr/bin/sourcekit-lsp"))
|
|
||||||
|
|
||||||
(use-package marginalia
|
(use-package marginalia
|
||||||
:init
|
:init
|
||||||
(marginalia-mode))
|
(marginalia-mode))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue