Drop lua-mode for built-in lua-ts-mode, add nix-ts-mode, julia-mode and julia-ts-mode

This commit is contained in:
Evie Litherland-Smith 2024-12-31 11:40:06 +00:00
parent 5e9ae83ab9
commit 5bce83d8b0

24
init.el
View file

@ -1092,14 +1092,6 @@
(eglot-sync-connect nil) (eglot-sync-connect nil)
(eglot-autoreconnect (* 60 5)) (eglot-autoreconnect (* 60 5))
(eglot-events-buffer-config '(:size 0)) (eglot-events-buffer-config '(:size 0))
(eglot-ignored-server-capabilities
'(:documentHighlightProvider
:documentFormattingProvider
:documentRangeFormattingProvider
:documentOnTypeFormattingProvider
:documentLinkProvider
:colorProvider
:foldingRangeProvider))
:init :init
(setq eglot-stay-out-of '(flymake)) (setq eglot-stay-out-of '(flymake))
:config :config
@ -1222,7 +1214,6 @@
(use-package nix-mode (use-package nix-mode
:if (package-installed-p 'nix-mode) :if (package-installed-p 'nix-mode)
:mode "\\.nix\\'"
:functions nix-prettify-global-mode :functions nix-prettify-global-mode
:config :config
(require 'nix) (require 'nix)
@ -1231,13 +1222,22 @@
(require 'nix-store) (require 'nix-store)
(nix-prettify-global-mode +1)) (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 (use-package sh-script
:custom :custom
(sh-basic-offset 2)) (sh-basic-offset 2))
(use-package lua-mode (use-package julia-mode
:if (package-installed-p 'lua-mode) :if (package-installed-p 'julia-mode))
:mode "\\.lua\\'")
(use-package julia-ts-mode
:if (package-installed-p 'julia-ts-mode)
:after (julia-mode)
:mode "\\.jl$")
(defun my/enable-fill-column (col) (defun my/enable-fill-column (col)
"Set and enable fill column to `COL'." "Set and enable fill column to `COL'."