dev: Add lsp config

Add configuration for the lsp-mode and Rust.
This commit is contained in:
finga 2023-11-15 11:41:49 +01:00
parent 9a0627bad0
commit d80f02e008

View file

@ -41,5 +41,18 @@
(let ((find-program "git-find"))
(find-dired dir "")))
;; python
;; (defun my-shell-mode-hook ()
;; (add-hook
;; 'comint-output-filter-functions
;; 'python-pdbtrack-comint-output-filter-function t))
;; (add-hook 'shell-mode-hook 'my-shell-mode-hook)
;; enable flyspell checks for comments in code
(add-hook 'prog-mode-hook #'flyspell-prog-mode)
;; language server
(use-package lsp-mode
:ensure t
:config
(add-hook 'rust-mode-hook 'lsp-deferred))