Files
.emacs.d/modules/languages/siren-sql.el
Jim Myhrberg 4ea4f6dc95 chore(completion): remove needless company-mode references
Since we enable global-company-mode, explicitly enabling it in the setup
for various major modes does nothing. But it does tie the code to
company mode, making it harder to try alternatives like corfu.
2022-03-14 11:58:47 +00:00

40 lines
724 B
EmacsLisp

;;; siren-sql.el --- jimeh's Emacs Siren: sql-mode configuration.
;;; Commentary:
;; Basic configuration for sql-mode.
;;; Code:
(require 'siren-rainbow)
(use-package sql-mode
:straight (:type built-in)
:mode "\\.sql\\'"
:hook (sql-mode . siren-sql-mode-setup)
:init
(defun siren-sql-mode-setup ()
(setq tab-width 2)))
(use-package lsp-sqls
:straight lsp-mode
:hook
(sql-mode . lsp-deferred)
:custom
(lsp-sqls-connections
'(((driver . "mysql") (dataSourceName . "root@tcp(localhost:3306)/")))))
(use-package sqlformat
:hook
(sql-mode . sqlformat-on-save-mode)
:custom
(sqlformat-args '("-g"))
(sqlformat-command 'pgformatter))
(provide 'siren-sql)
;;; siren-sql.el ends here