diff options
author | Franck Cuny <franck@fcuny.net> | 2024-04-28 19:29:08 -0700 |
---|---|---|
committer | Franck Cuny <franck@fcuny.net> | 2024-04-28 19:29:08 -0700 |
commit | 7aabaf5cc0eb59ff067dc93b1de80510c58fd840 (patch) | |
tree | d17921b84d1c2496f8e4ab24a2a759e6ee1440f6 | |
parent | install eldoc-box and tune GC settings (diff) | |
download | emacs.d-7aabaf5cc0eb59ff067dc93b1de80510c58fd840.tar.gz |
minor tweaks for python and eldoc-box
-rw-r--r-- | config/init-lsp.el | 12 | ||||
-rw-r--r-- | config/init-python.el | 10 |
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 |