From d4c8dc4c4cfbd3e344accc5415a48236e2ce219f Mon Sep 17 00:00:00 2001 From: Colin Powell Date: Fri, 1 Nov 2019 22:24:54 -0400 Subject: [PATCH] Remove LSP and move to eglot #emacs This is a personal experiment to see if eglot is faster while being a much simpler interface to lsp. For starters, there's only a single module to install. Everything else comes with sane defaults and a simple way to override which LSP to use. --- emacs/.config/doom/init.el | 14 +++++++------- emacs/.config/doom/packages.el | 3 +++ 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/emacs/.config/doom/init.el b/emacs/.config/doom/init.el index 25d2d50..c101845 100644 --- a/emacs/.config/doom/init.el +++ b/emacs/.config/doom/init.el @@ -72,7 +72,7 @@ gist ; interacting with github gists (lookup ; helps you navigate your code and documentation +docsets) ; ...or in Dash docsets locally - lsp + ;;lsp ;;macos ; MacOS-specific commands magit ; a git porcelain for Emacs make ; run make tasks from Emacs @@ -96,17 +96,17 @@ ;;csharp ; unity, .NET, and mono shenanigans data ; config/data formats ;;erlang ; an elegant language for a more civilized age - (elixir +lsp) ; erlang done right + (elixir) ; erlang done right elm ; care for a cup of TEA? emacs-lisp ; drown in parentheses ;;ess ; emacs speaks statistics ;;fsharp ; ML stands for Microsoft's Language - (go +lsp) ; the hipster dialect + (go) ; the hipster dialect ;;(haskell +intero) ; a language that's lazier than I am ;;hy ; readability of scheme w/ speed of python ;;idris ; ;;(java +meghanada) ; the poster child for carpal tunnel syndrome - (javascript +lsp) ; all(hope(abandon(ye(who(enter(here)))))) + (javascript) ; all(hope(abandon(ye(who(enter(here)))))) julia ; a better, faster MATLAB ;;kotlin ; a better, slicker Java(Script) ;;latex ; writing papers in Emacs has never been so fun @@ -126,12 +126,12 @@ ;;php ; perl's insecure younger brother plantuml ; diagrams for confusing people more ;;purescript ; javascript, but functional - (python +lsp) ; beautiful is better than ugly + (python) ; beautiful is better than ugly ;;qt ; the 'cutest' gui framework ever racket ; a DSL for DSLs rest ; Emacs as a REST client - (ruby +lsp) ; 1.step do {|i| p "Ruby is #{i.even? ? 'love' : 'life'}"} - (rust +lsp) ; Fe2O3.unwrap().unwrap().unwrap().unwrap() + (ruby) ; 1.step do {|i| p "Ruby is #{i.even? ? 'love' : 'life'}"} + (rust) ; Fe2O3.unwrap().unwrap().unwrap().unwrap() ;;scala ; java, but good scheme ; a fully conniving family of lisps (sh +fish) ; she sells (ba|z|fi)sh shells on the C xor diff --git a/emacs/.config/doom/packages.el b/emacs/.config/doom/packages.el index 5a8f070..96f0b3e 100644 --- a/emacs/.config/doom/packages.el +++ b/emacs/.config/doom/packages.el @@ -16,6 +16,9 @@ :recipe (:host github :repo "redguardtoo/evil-matchit")) +;; eglot instead of lsp +(package! eglot) + ;; python stuffs (package! w3m) (package! blacken)