Fix language mode configs
This commit is contained in:
1 parent
f7df3af685
commit
a9255c2fea
1 file changed
+11
-20
+11
-20
@@ -856,10 +856,18 @@ EMACS-ALTERNATIVE is the Emacs equivalent (e.g., 'C-s')."
|
||||
(use-package treesit-auto
|
||||
:ensure t
|
||||
:custom
|
||||
;; Check and offer to install these grammars once at startup.
|
||||
(treesit-auto-langs '(bash css dockerfile html javascript json python rust
|
||||
tsx typescript yaml))
|
||||
(treesit-auto-install 'prompt)
|
||||
:hook (prog-mode . treesit-auto-mode)
|
||||
:config
|
||||
(treesit-auto-add-to-auto-mode-alist 'all))
|
||||
;; Use treesit-auto for grammar recipes, without its per-file scanning.
|
||||
(global-treesit-auto-mode -1)
|
||||
(treesit-auto-install-all)
|
||||
(setq major-mode-remap-alist
|
||||
(treesit-auto--build-major-mode-remap-alist))
|
||||
;; Register only modes whose grammars are available.
|
||||
(treesit-auto-add-to-auto-mode-alist))
|
||||
|
||||
;;;; Markdown
|
||||
(use-package markdown-mode
|
||||
@@ -880,22 +888,11 @@ EMACS-ALTERNATIVE is the Emacs equivalent (e.g., 'C-s')."
|
||||
|
||||
(keymap-global-set "C-c o r" #'copy-source-for-reddit)
|
||||
|
||||
;;;; YAML
|
||||
(use-package yaml-mode
|
||||
:ensure t)
|
||||
|
||||
;;;;
|
||||
;;;; CSV
|
||||
(use-package csv-mode
|
||||
:ensure t)
|
||||
|
||||
;;;; Rust
|
||||
(use-package rust-mode
|
||||
:ensure t)
|
||||
|
||||
;;;; Python
|
||||
(setq major-mode-remap-alist
|
||||
'((python-mode . python-ts-mode)))
|
||||
|
||||
(use-package lsp-pyright
|
||||
:ensure t
|
||||
:custom (lsp-pyright-langserver-command "basedpyright")
|
||||
@@ -906,10 +903,6 @@ EMACS-ALTERNATIVE is the Emacs equivalent (e.g., 'C-s')."
|
||||
(setq lsp-pylsp-plugins-flake8-ignore '("D100" "D101" "D102"))
|
||||
|
||||
|
||||
;;;; Docker
|
||||
(use-package dockerfile-mode
|
||||
:ensure t)
|
||||
|
||||
;;;; LSP
|
||||
(use-package lsp-mode
|
||||
:ensure t
|
||||
@@ -992,8 +985,6 @@ EMACS-ALTERNATIVE is the Emacs equivalent (e.g., 'C-s')."
|
||||
(use-package svelte-mode
|
||||
:ensure t)
|
||||
|
||||
(use-package typescript-mode
|
||||
:ensure t)
|
||||
;;; Eshell
|
||||
;;;; Eshell
|
||||
(require 'cl-lib)
|
||||
|
||||
Reference in new issue
Block a user