diff options
| author | Eisuke Kawashima <e-kwsm@users.noreply.github.com> | 2019-11-26 23:01:42 +0900 |
|---|---|---|
| committer | Ashkan Kiani <ashkan.k.kiani@gmail.com> | 2019-11-26 06:01:42 -0800 |
| commit | 2abfde64579e458dc7621b84051122d81bb7f290 (patch) | |
| tree | ad2cfc3e8be6b01241ffd4129283a97f76c20e07 /lua | |
| parent | Add sumneko_lua installation and util.sh helper. (#49) (diff) | |
| download | nvim-lspconfig-2abfde64579e458dc7621b84051122d81bb7f290.tar nvim-lspconfig-2abfde64579e458dc7621b84051122d81bb7f290.tar.gz nvim-lspconfig-2abfde64579e458dc7621b84051122d81bb7f290.tar.bz2 nvim-lspconfig-2abfde64579e458dc7621b84051122d81bb7f290.tar.lz nvim-lspconfig-2abfde64579e458dc7621b84051122d81bb7f290.tar.xz nvim-lspconfig-2abfde64579e458dc7621b84051122d81bb7f290.tar.zst nvim-lspconfig-2abfde64579e458dc7621b84051122d81bb7f290.zip | |
Add support for fortls (#52)
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/nvim_lsp.lua | 1 | ||||
| -rw-r--r-- | lua/nvim_lsp/fortls.lua | 29 |
2 files changed, 30 insertions, 0 deletions
diff --git a/lua/nvim_lsp.lua b/lua/nvim_lsp.lua index 1d5c35e0..70748e07 100644 --- a/lua/nvim_lsp.lua +++ b/lua/nvim_lsp.lua @@ -6,6 +6,7 @@ require 'nvim_lsp/clangd' require 'nvim_lsp/cssls' require 'nvim_lsp/elmls' require 'nvim_lsp/flow' +require 'nvim_lsp/fortls' require 'nvim_lsp/gopls' require 'nvim_lsp/hie' require 'nvim_lsp/pyls' diff --git a/lua/nvim_lsp/fortls.lua b/lua/nvim_lsp/fortls.lua new file mode 100644 index 00000000..630034ed --- /dev/null +++ b/lua/nvim_lsp/fortls.lua @@ -0,0 +1,29 @@ +local skeleton = require 'nvim_lsp/skeleton' +local util = require 'nvim_lsp/util' +local lsp = vim.lsp + +skeleton.fortls = { + default_config = { + cmd = {"fortls"}; + filetypes = {"fortran"}; + root_dir = util.root_pattern(".fortls"); + log_level = lsp.protocol.MessageType.Warning; + settings = { + nthreads = 1, + }; + }; + -- on_new_config = function(new_config) end; + -- on_attach = function(client, bufnr) end; + docs = { + description = [[ +https://github.com/hansec/fortran-language-server + +Fortran Language Server for the Language Server Protocol + ]]; + default_config = { + root_dir = [[root_pattern(".fortls")]]; + }; + }; +}; + +-- vim:et ts=2 sw=2 |
