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-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'."