lsp config from vm

main
Ben Kristinsson 2 months ago
parent 84a66ee704
commit 521e1fa91d

@ -155,17 +155,40 @@
:config
(message "loaded org-mode"))
(use-package python
;; (use-package python
;; :ensure t
;; :mode ("\\.py\\'" . python-mode)
;; ;; :interpreter ("python" . python-mode)
;; :init
;; (message "loading python-mode")
;; (add-hook 'before-save-hook 'delete-trailing-whitespace)
;; ;(add-hook 'python-mode-hook 'flycheck-mode)
;; (setq backward-delete-char-untabify nil)
;; :config
;; (message "loaded python-mode"))
(use-package lsp-pyright
:ensure t
:mode ("\\.py\\'" . python-mode)
;; :interpreter ("python" . python-mode)
:init
(message "loading python-mode")
(add-hook 'before-save-hook 'delete-trailing-whitespace)
;(add-hook 'python-mode-hook 'flycheck-mode)
(setq backward-delete-char-untabify nil)
:config
(message "loaded python-mode"))
:hook (python-mode . (lambda ()
(require 'lsp-pyright)
(lsp)))) ; or lsp-deferred
;; optionally
(use-package lsp-ui :commands lsp-ui-mode)
;; if you are helm user
(use-package helm-lsp :commands helm-lsp-workspace-symbol)
;; if you are ivy user
(use-package lsp-ivy :commands lsp-ivy-workspace-symbol)
(use-package lsp-treemacs :commands lsp-treemacs-errors-list)
;; optionally if you want to use debugger
(use-package dap-mode)
;; (use-package dap-LANGUAGE) to load the dap adapter for your language
;; optional if you want which-key integration
(use-package which-key
:config
(which-key-mode))
(use-package rust-mode
:ensure t
@ -395,7 +418,7 @@
'(custom-safe-themes
'("4ea1959cfaa526b795b45e55f77724df4be982b9cd33da8d701df8cdce5b2955" default))
'(package-selected-packages
'(ibuffer-git nginx-mode rainbow-identifiers rainbow-blocks rainbow-mode jenkinsfile-mode php-mode indent-tools highlight-indentation yaml-mode use-package terraform-mode pyflakes nord-theme neotree markdown-mode magit jinja2-mode ibuffer-vc ibuffer-tramp haskell-mode groovy-mode dockerfile-mode company clojure-mode cargo ansible)))
'(dap-mode lsp-ivy helm-lsp lsp-treemacs flycheck lsp-ui lsp-mode ibuffer-git nginx-mode rainbow-identifiers rainbow-blocks rainbow-mode jenkinsfile-mode php-mode indent-tools highlight-indentation yaml-mode use-package terraform-mode pyflakes nord-theme neotree markdown-mode magit jinja2-mode ibuffer-vc ibuffer-tramp haskell-mode groovy-mode dockerfile-mode company clojure-mode cargo ansible)))
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.

Loading…
Cancel
Save