fix(language/toml): fix toml setup hook function name

This commit is contained in:
2024-12-17 21:16:42 +00:00
parent 45c41b318d
commit 2ea3fdc27a
2 changed files with 4 additions and 3 deletions

View File

@@ -64,6 +64,7 @@
;; syntax highlighting as you type. Essentially all new text is a very faded
;; out grey color for the first 1-2 seconds as you type.
(setq-local lsp-semantic-tokens-enable nil)
(lsp-format-buffer-on-save-mode t)
(lsp-deferred)))

View File

@@ -39,11 +39,11 @@
(use-package lsp-toml
:straight lsp-mode
:hook
(conf-toml-mode . siren-lsp-lua-mode-setup)
(toml-ts-mode . siren-lsp-lua-mode-setup)
(conf-toml-mode . siren-lsp-toml-mode-setup)
(toml-ts-mode . siren-lsp-toml-mode-setup)
:preface
(defun siren-lsp-lua-mode-setup ()
(defun siren-lsp-toml-mode-setup ()
;; Disable semantic tokens as it typically causes an annoying delay with the
;; syntax highlighting as you type. Essentially all new text is a very faded
;; out grey color for the first 1-2 seconds as you type.