hansec / fortran-language-server

Fortran Language Server for the Language Server Protocol
MIT License
294 stars 57 forks source link

Help need in using fortls in emacs #210

Open vickysharma0812 opened 2 years ago

vickysharma0812 commented 2 years ago

I am shifting to doom-emacs for writing the Fortran program. How can I setup Fortran language server on doom-emacs

Regards Vikas

gnikit commented 2 years ago

As far as I know there is this client for emacs. You can specify more options directly to the fortran-language-server by using a .fortls file. I am afraid that is where my knowledge of emacs ends (I tend to use VSCode).

vickysharma0812 commented 2 years ago

I see, thank you for your reply. I will post my experience here once I get some success.

Regards Vikas

ssnnoo commented 2 years ago

there are two lsp clients for emacs, eglot and [lsp-mode](), both should support it right away, eglot will auto-detect it and here are the lsp-mode instructions.

googling doom emacs eglot gave this here: https://rgoswami.me/posts/emacs-lang-servers/ don't know if up-to-date.