Use TS mode for Kotlin
Some checks failed
/ Test config on 20 (push) Failing after 49s

This commit is contained in:
Maciej 2024-11-24 15:30:05 +02:00
parent 34a2741886
commit d1ee6a12ed
Signed by: maciej
GPG key ID: 41D62D42D3B0D765
7 changed files with 203 additions and 195 deletions

View file

@ -39,7 +39,7 @@
(icejam-set-indent 2)
(column-enforce-n 98)
(lsp)
(setq-local flycheck-check-syntax-automatically '(save mode-enabled))
;; (setq-local flycheck-check-syntax-automatically '(save mode-enabled))
(setq-local lsp-eldoc-enable-hover nil)
(setq-local lsp-completion-enable-additional-text-edit nil)
(setq-local company-minimum-prefix-length 3)

View file

@ -9,10 +9,14 @@
;; kotlin does a thing.
;;; Code:
(require 'icejam-prog-mode)
(require 'icejam-blocking)
(use-package kotlin-mode
:defer t
:ensure t)
(use-package kotlin-ts-mode :ensure t)
(with-eval-after-load 'kotlin-ts-mode
(add-to-list 'auto-mode-alist '("\\.kt\\'" . kotlin-ts-mode))
(add-to-list 'auto-mode-alist '("\\.kts\\'" . kotlin-ts-mode)))
(use-package gradle-mode
:defer t
@ -20,15 +24,11 @@
(defun icejam-activate-kotlin-mode ()
"All things Kotlin."
(icejam-set-indent 4)
(icejam-set-indent 2)
(column-enforce-n 100)
(lsp)
(lsp))
;; Company list override
(add-to-list (make-local-variable 'company-backends)
'(company-capf company-yasnippet)))
(add-hook 'kotlin-mode-hook 'icejam-activate-kotlin-mode)
(add-hook 'kotlin-ts-mode-hook 'icejam-activate-kotlin-mode)
(provide 'icejam-lang-kotlin)
;;; icejam-lang-kotlin.el ends here