summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--config/init-lsp.el12
-rw-r--r--config/init-python.el10
2 files changed, 20 insertions, 2 deletions
diff --git a/config/init-lsp.el b/config/init-lsp.el
index d7eda93..50512ab 100644
--- a/config/init-lsp.el
+++ b/config/init-lsp.el
@@ -15,6 +15,9 @@
("C-c l f" . eglot-format-buffer))
:hook (eglot-managed-mode . (lambda () (eglot-inlay-hints-mode -1)))
:config
+ (setq-default read-process-output-max (* 1024 1024)
+ eglot-events-buffer-size 0
+ eglot-events-buffer-config '(:size 0 :format full))
(setq eglot-autoshutdown t)
(setq-default eglot-workspace-configuration
'(:pylsp (:plugins (:ruff (:enabled t)))
@@ -31,7 +34,14 @@
:hook
(eglot-managed-mode . eldoc-box-hover-mode)
:custom
- (eldoc-box-max-pixel-width 1024))
+ (eldoc-box-max-pixel-width 1024)
+ :config
+ (set-face-attribute 'eldoc-box-border nil
+ :background "#000fff")
+ (set-face-attribute 'eldoc-box-body nil
+ :family "Monaspace Argon" :height 140)
+ (set-face-attribute 'eldoc-box-markdown-separator nil
+ :foreground "darkgray"))
(provide 'init-lsp)
diff --git a/config/init-python.el b/config/init-python.el
index 6a4372a..847304f 100644
--- a/config/init-python.el
+++ b/config/init-python.el
@@ -9,12 +9,20 @@
(use-package python-mode
:hook ((python-mode . tree-sitter-hl-mode)
- (python-mode . eglot-ensure)))
+ (python-mode . eglot-ensure))
+ :custom
+ ;; if set to an absolute path, pyvenv won't work
+ (python-shell-interpreter "python3"))
(use-package blacken
:ensure t
:hook (python-mode . blacken-mode))
+(use-package pyvenv
+ :ensure t
+ :config
+ (pyvenv-mode 1))
+
(provide 'init-python)
;;; init-python.el ends here