fix(emacs): add swift
This commit is contained in:
parent
bccdcc849d
commit
7ef2b08272
2 changed files with 7 additions and 2 deletions
|
|
@ -7,7 +7,7 @@
|
|||
:custom
|
||||
(eglot-events-buffer-config '(:size 0 :format full))
|
||||
:custom-face (eglot-inlay-hint-face ((t (:height 1.0))))
|
||||
:hook ((racket-mode rust-mode irony-mode tuareg-mode python-mode tsx-ts-mode nix-mode) . eglot-ensure)
|
||||
:hook ((racket-mode rust-mode irony-mode tuareg-mode python-mode tsx-ts-mode nix-mode swift-mode) . eglot-ensure)
|
||||
:bind (:map eglot-mode-map
|
||||
("C-c l r" . eglot-rename)
|
||||
("C-c l a" . eglot-code-actions)
|
||||
|
|
@ -16,7 +16,8 @@
|
|||
(fset #'jsonrpc--log-event #'ignore)
|
||||
:config
|
||||
(add-to-list 'eglot-server-programs '(nix-mode "nil"))
|
||||
(add-to-list 'eglot-server-programs '(python-mode . ("basedpyright-langserver" "--stdio"))))
|
||||
(add-to-list 'eglot-server-programs '(python-mode . ("basedpyright-langserver" "--stdio")))
|
||||
(add-to-list 'eglot-server-programs '(swift-mode "sourcekit-lsp")))
|
||||
(use-package eglot-booster
|
||||
:straight (eglot-booster :type git :host github :repo "jdtsmith/eglot-booster")
|
||||
:after (eglot)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue