From 5bce83d8b06fffc50e719031c85079b7f70585b1 Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Tue, 31 Dec 2024 11:40:06 +0000 Subject: [PATCH] Drop lua-mode for built-in lua-ts-mode, add nix-ts-mode, julia-mode and julia-ts-mode --- init.el | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/init.el b/init.el index efb0243..58d566b 100644 --- a/init.el +++ b/init.el @@ -1092,14 +1092,6 @@ (eglot-sync-connect nil) (eglot-autoreconnect (* 60 5)) (eglot-events-buffer-config '(:size 0)) - (eglot-ignored-server-capabilities - '(:documentHighlightProvider - :documentFormattingProvider - :documentRangeFormattingProvider - :documentOnTypeFormattingProvider - :documentLinkProvider - :colorProvider - :foldingRangeProvider)) :init (setq eglot-stay-out-of '(flymake)) :config @@ -1222,7 +1214,6 @@ (use-package nix-mode :if (package-installed-p 'nix-mode) - :mode "\\.nix\\'" :functions nix-prettify-global-mode :config (require 'nix) @@ -1231,13 +1222,22 @@ (require 'nix-store) (nix-prettify-global-mode +1)) +(use-package nix-ts-mode + :if (package-installed-p 'nix-ts-mode) + :after (nix-mode) + :mode "\\.nix$") + (use-package sh-script :custom (sh-basic-offset 2)) -(use-package lua-mode - :if (package-installed-p 'lua-mode) - :mode "\\.lua\\'") +(use-package julia-mode + :if (package-installed-p 'julia-mode)) + +(use-package julia-ts-mode + :if (package-installed-p 'julia-ts-mode) + :after (julia-mode) + :mode "\\.jl$") (defun my/enable-fill-column (col) "Set and enable fill column to `COL'."