aboutsummaryrefslogtreecommitdiffstats
path: root/lua/lspconfig/server_configurations/fortls.lua
blob: 09ae9b13cd58f71f66f3f23af2511ae2ea3b0596 (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
local util = require 'lspconfig.util'

return {
  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")]],
    },
  },
}