File tree 1 file changed +18
-0
lines changed
1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -159,13 +159,31 @@ to set ``fortls`` for Fortran files
159
159
`EMACS <https://www.gnu.org/software/emacs/ >`__
160
160
-----------------------------------------------
161
161
162
+ `LSP Mode <https://emacs-lsp.github.io/lsp-mode >`__
163
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
164
+
162
165
Install the `lsp-mode `_ plugin. This should then allow for the variables
163
166
`lsp-clients-fortls-args `_ and `lsp-clients-fortls-executable `_ to be defined in the ``~/.emacs `` configuration file.
164
167
165
168
.. _lsp-mode : https://emacs-lsp.github.io/lsp-mode/page/installation
166
169
.. _lsp-clients-fortls-args : https://emacs-lsp.github.io/lsp-mode/page/lsp-fortran/#lsp-clients-fortls-args
167
170
.. _lsp-clients-fortls-executable : https://emacs-lsp.github.io/lsp-mode/page/lsp-fortran/#lsp-clients-fortls-executable
168
171
172
+
173
+ `Eglot <https://github.com/joaotavora/eglot >`__
174
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
175
+
176
+ Install the `eglot `_ package which supports fortls out of the box.
177
+ This can be done in emacs version > 26.1 via ``M-x package-install RET eglot RET ``.
178
+ Arguments to ``fortls `` can be provided in the form
179
+
180
+ .. code-block :: elisp
181
+
182
+ (add-to-list 'eglot-server-programs '(f90-mode . ("fortls" "--notify_init" "--nthreads=4")))
183
+
184
+ .. _eglot : https://github.com/joaotavora/eglot
185
+
186
+
169
187
Visual Studio 2017
170
188
------------------
171
189
You can’t perform that action at this time.
0 commit comments