Skip to content

Commit

Permalink
Move lsp-pyright to init-lsp.el
Browse files Browse the repository at this point in the history
  • Loading branch information
regob committed Oct 18, 2024
1 parent 995c920 commit 2870a8d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
5 changes: 4 additions & 1 deletion lisp/init-lsp.el
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
(lsp-completion-enable t)
(lsp-use-plists t)
:config
(require 'lsp-pyright)
(keymap-set lsp-mode-map "C-c l" lsp-command-map)
;; show lsp keymap names when using which key
(lsp-enable-which-key-integration t)
Expand All @@ -35,6 +34,10 @@
(require 'dap-python)
)

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

(provide 'init-lsp)

Expand Down
6 changes: 0 additions & 6 deletions lisp/init-python.el
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,6 @@
)


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


(provide 'init-python)

;;; init-python.el ends here

0 comments on commit 2870a8d

Please sign in to comment.