feat(format): add :lang fortran formatter
This commit is contained in:
parent
12c901cf28
commit
efd5ee00ea
2 changed files with 7 additions and 2 deletions
|
@ -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.")))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue