From f248c257bd2028bb493473544c6c3807ede768c6 Mon Sep 17 00:00:00 2001 From: Dionisio E Alonso Date: Tue, 6 Feb 2024 08:08:24 -0300 Subject: [PATCH] fix(LSP): Correct pylsp configuration syntax MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Eglot's configuration for LSP servers does not have a “false” literal in Lisp. Furthermore, the previously used `nil` value was being mapped to JSON's `null` value instead of `false`; making the LSP server to load defaults for those settings instead of setting those settings to false. --- emacs/init.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/emacs/init.el b/emacs/init.el index 466894f..555cfc4 100644 --- a/emacs/init.el +++ b/emacs/init.el @@ -21,8 +21,8 @@ :pylint (:enabled t :executable "pylint") :pylsp_mypy (:enabled t) - :pycodestyle (:enabled nil) - :pyflakes (:enabled nil))))) + :pycodestyle (:enabled :json-false) + :pyflakes (:enabled :json-false))))) (when window-system (set-frame-size (selected-frame) 85 60)) ; After dealing with some nice defaults setup packages