~willvaughn/.emacs.d

02c60cf271fc3d50837dcc68b2ef5d88d4738c20 — William Vaughn 4 months ago 118ebe8
add basic python lsp-mode and pyvenv
5 files changed, 32 insertions(+), 1 deletions(-)

M .gitignore
M init.el
M lisp/wv-packages.el
A lisp/wv-python.el
M lisp/wv-ui.el
M .gitignore => .gitignore +3 -1
@@ 65,4 65,6 @@ flycheck_*.el
/persist/
/request/
/emojis/
/custom.el
\ No newline at end of file
/custom.el
/.cache
/.lsp-session-*
\ No newline at end of file

M init.el => init.el +1 -0
@@ 11,6 11,7 @@
(require 'wv-ui)
(require 'wv-lisp)
(require 'wv-clojure)
(require 'wv-python)
(require 'wv-sql)
(require 'wv-org)
(require 'wv-email)

M lisp/wv-packages.el => lisp/wv-packages.el +5 -0
@@ 24,6 24,9 @@
(straight-use-package 'flycheck-languagetool)
(straight-use-package 'yasnippet)
(straight-use-package 'yasnippet-snippets)
(straight-use-package 'lsp-mode)
(straight-use-package 'lsp-ui)
(straight-use-package 'lsp-ivy)
(straight-use-package 'ox-hugo)
(straight-use-package 'org-roam)
(straight-use-package 'org-gcal)


@@ 44,5 47,7 @@
(straight-use-package 'rainbow-delimiters)
(straight-use-package 'clojure-mode)
(straight-use-package 'cider)
(straight-use-package 'lsp-pyright)
(straight-use-package 'pyvenv)

(provide 'wv-packages)

A lisp/wv-python.el => lisp/wv-python.el +12 -0
@@ 0,0 1,12 @@
;;; lisp/wv-python.el -*- lexical-binding: t; -*-

(use-package pyvenv
  :after python
  :hook (python-mode-local-vars . pyvenv-track-virtualenv))

(use-package lsp-pyright
  :hook (python-mode . (lambda ()
                         (require 'lsp-pyright)
                         (lsp))))

(provide 'wv-python)

M lisp/wv-ui.el => lisp/wv-ui.el +11 -0
@@ 50,4 50,15 @@
  :config
  (yas-reload-all))

(use-package lsp-mode
  :init
  (setq lsp-keymap-prefix "C-c l")
  :commands lsp)

(use-package lsp-ui
  :commands lsp-ui-mode)

(use-package lsp-ivy
  :commands lsp-ivy-workspace-symbol)

(provide 'wv-ui)