aboutsummaryrefslogtreecommitdiffstats
path: root/lua/lspconfig/fortls.lua
blob: 6e9c88caca1cff2a93a34b30c7c78fe47aaedd28 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
local configs = require 'lspconfig/configs'
local util = require 'lspconfig/util'

configs.fortls = {
  default_config = {
    cmd = { 'fortls' },
    filetypes = { 'fortran' },
    root_dir = function(fname)
      return util.root_pattern '.fortls'(fname) or util.find_git_ancestor(fname)
    end,
    settings = {
      nthreads = 1,
    },
  },
  docs = {
    package_json = 'https://raw.githubusercontent.com/hansec/vscode-fortran-ls/master/package.json',
    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