Skip to content

Commit

Permalink
Make it possible to set formatter casing
Browse files Browse the repository at this point in the history
  • Loading branch information
themkat committed Oct 9, 2024
1 parent e395693 commit d1b09ab
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion lsp-m68k.el
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,17 @@
:group 'm68k
:type 'vector)

(defcustom m68k-format-case "lower"
"What casing to use for instructions and registers when formatting."
:type '(choice (const "lower")
(const "upper")
(const "any"))
:group 'm68k)

;; TODO: alignment settings for formatter

(lsp-register-custom-settings
'(("m68k.format.case" "lower")
'(("m68k.format.case" m68k-format-case)
("m68k.processors" m68k-processor-types)))

(lsp-dependency
Expand Down

0 comments on commit d1b09ab

Please sign in to comment.