1

Add LSP Mode for JavaScript, Rust, GDScript

This commit is contained in:
Jessie Hildebrandt 2020-07-16 19:49:09 -04:00
parent 957a887162
commit 439e2f282f

23
init.el
View File

@ -415,6 +415,21 @@
("\\.gd\\'" . gdscript-mode) ("\\.gd\\'" . gdscript-mode)
("\\.tscn\\'" . gdscript-mode)) ("\\.tscn\\'" . gdscript-mode))
;;====================
;; LSP Mode (Language Server Support)
;;====================
;; Load LSP Mode
;; Associated languages: JavaScript, GDScript
(use-package lsp-mode
:hook
(js-mode . lsp-deferred)
(gdscript-mode . lsp-deferred)
(rust-mode . lsp-deferred)
:commands
(lsp
lsp-deferred))
;;==================== ;;====================
;; Package-Lint (Elisp Package Linter) ;; Package-Lint (Elisp Package Linter)
;;==================== ;;====================
@ -443,14 +458,6 @@
:bind :bind
("C-c e" . flycheck-list-errors)) ("C-c e" . flycheck-list-errors))
;; [Rust]
;; Load FlyCheck-Rust
(use-package flycheck-rust
:after
(flycheck)
:hook
(flycheck-mode-hook . flycheck-rust-setup))
;; [Elisp Packages] ;; [Elisp Packages]
;; Load FlyCheck-Package ;; Load FlyCheck-Package
(use-package flycheck-package (use-package flycheck-package