mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
feat(format): add :lang fortran formatter
This commit is contained in:
@ -35,6 +35,9 @@
|
||||
:desc "build" "b" #'+fortran/build
|
||||
:desc "run" "r" #'+fortran/run)
|
||||
|
||||
(when (executable-find "fprettify")
|
||||
(set-formatter! 'fprettify '("fprettify" "-") :modes '(f90-mode fortran-mode)))
|
||||
|
||||
(when (modulep! +intel)
|
||||
(map! :map f90-mode-map
|
||||
:localleader
|
||||
|
@ -18,6 +18,8 @@
|
||||
|
||||
(when (modulep! +lsp)
|
||||
(unless (executable-find "fortls")
|
||||
(warn! "Couldn't find fortls."))
|
||||
(warn! "Couldn't find fortls. Language features will be disabled.")))
|
||||
|
||||
(when (modulep! :editor format)
|
||||
(unless (executable-find "fprettify")
|
||||
(warn! "Couldn't find fprettify.")))
|
||||
(warn! "Couldn't find fprettify. Formatting will be disabled.")))
|
||||
|
Reference in New Issue
Block a user